home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-01-13 | 12.5 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 47 c7 01 2f 2f 20 3d 3d |........|G..// ==|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 0d 0a 2f 2f 20 20 | 43 6c 61 73 73 3a 20 20 |==..// |Class: |
|00000060| 47 55 49 2e 47 55 49 43 | 6f 6d 70 6f 6e 65 6e 74 |GUI.GUIC|omponent|
|00000070| 0d 0a 2f 2f 0d 0a 2f 2f | 09 47 55 49 43 6f 6d 70 |..//..//|.GUIComp|
|00000080| 6f 6e 65 6e 74 73 20 61 | 72 65 20 74 68 65 20 6d |onents a|re the m|
|00000090| 6f 73 74 20 62 61 73 69 | 63 20 62 75 69 6c 64 69 |ost basi|c buildi|
|000000a0| 6e 67 20 62 6c 6f 63 6b | 73 20 6f 66 20 6d 65 6e |ng block|s of men|
|000000b0| 75 73 2e 0d 0a 2f 2f 0d | 0a 2f 2f 20 20 57 72 69 |us...//.|.// Wri|
|000000c0| 74 74 65 6e 20 62 79 20 | 4a 6f 65 20 57 69 6c 63 |tten by |Joe Wilc|
|000000d0| 6f 78 0d 0a 2f 2f 20 20 | 28 63 29 20 32 30 30 32 |ox..// |(c) 2002|
|000000e0| 2c 20 45 70 69 63 20 47 | 61 6d 65 73 2c 20 49 6e |, Epic G|ames, In|
|000000f0| 63 2e 20 20 41 6c 6c 20 | 52 69 67 68 74 73 20 52 |c. All |Rights R|
|00000100| 65 73 65 72 76 65 64 0d | 0a 2f 2f 20 3d 3d 3d 3d |eserved.|.// ====|
|00000110| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000120| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000130| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000140| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000150| 0d 0a 0d 0a 63 6c 61 73 | 73 20 47 55 49 43 6f 6d |....clas|s GUICom|
|00000160| 70 6f 6e 65 6e 74 20 65 | 78 74 65 6e 64 73 20 47 |ponent e|xtends G|
|00000170| 55 49 0d 0a 09 09 4e 61 | 74 69 76 65 3b 0d 0a 0d |UI....Na|tive;...|
|00000180| 0a 2f 2f 20 28 63 70 70 | 74 65 78 74 29 0d 0a 2f |.// (cpp|text)../|
|00000190| 2f 20 28 63 70 70 74 65 | 78 74 29 0d 0a 2f 2f 20 |/ (cppte|xt)..// |
|000001a0| 28 63 70 70 74 65 78 74 | 29 0d 0a 2f 2f 20 28 63 |(cpptext|)..// (c|
|000001b0| 70 70 74 65 78 74 29 0d | 0a 2f 2f 20 28 63 70 70 |pptext).|.// (cpp|
|000001c0| 74 65 78 74 29 0d 0a 2f | 2f 20 28 63 70 70 74 65 |text)../|/ (cppte|
|000001d0| 78 74 29 0d 0a 2f 2f 20 | 28 63 70 70 74 65 78 74 |xt)..// |(cpptext|
|000001e0| 29 0d 0a 2f 2f 20 28 63 | 70 70 74 65 78 74 29 0d |)..// (c|pptext).|
|000001f0| 0a 2f 2f 20 28 63 70 70 | 74 65 78 74 29 0d 0a 2f |.// (cpp|text)../|
|00000200| 2f 20 28 63 70 70 74 65 | 78 74 29 0d 0a 2f 2f 20 |/ (cppte|xt)..// |
|00000210| 28 63 70 70 74 65 78 74 | 29 0d 0a 2f 2f 20 28 63 |(cpptext|)..// (c|
|00000220| 70 70 74 65 78 74 29 0d | 0a 2f 2f 20 28 63 70 70 |pptext).|.// (cpp|
|00000230| 74 65 78 74 29 0d 0a 2f | 2f 20 28 63 70 70 74 65 |text)../|/ (cppte|
|00000240| 78 74 29 0d 0a 2f 2f 20 | 28 63 70 70 74 65 78 74 |xt)..// |(cpptext|
|00000250| 29 0d 0a 2f 2f 20 28 63 | 70 70 74 65 78 74 29 0d |)..// (c|pptext).|
|00000260| 0a 2f 2f 20 28 63 70 70 | 74 65 78 74 29 0d 0a 2f |.// (cpp|text)../|
|00000270| 2f 20 28 63 70 70 74 65 | 78 74 29 0d 0a 2f 2f 20 |/ (cppte|xt)..// |
|00000280| 28 63 70 70 74 65 78 74 | 29 0d 0a 2f 2f 20 28 63 |(cpptext|)..// (c|
|00000290| 70 70 74 65 78 74 29 0d | 0a 2f 2f 20 28 63 70 70 |pptext).|.// (cpp|
|000002a0| 74 65 78 74 29 0d 0a 2f | 2f 20 28 63 70 70 74 65 |text)../|/ (cppte|
|000002b0| 78 74 29 0d 0a 2f 2f 20 | 28 63 70 70 74 65 78 74 |xt)..// |(cpptext|
|000002c0| 29 0d 0a 2f 2f 20 28 63 | 70 70 74 65 78 74 29 0d |)..// (c|pptext).|
|000002d0| 0a 2f 2f 20 28 63 70 70 | 74 65 78 74 29 0d 0a 2f |.// (cpp|text)../|
|000002e0| 2f 20 28 63 70 70 74 65 | 78 74 29 0d 0a 2f 2f 20 |/ (cppte|xt)..// |
|000002f0| 28 63 70 70 74 65 78 74 | 29 0d 0a 2f 2f 20 28 63 |(cpptext|)..// (c|
|00000300| 70 70 74 65 78 74 29 0d | 0a 2f 2f 20 28 63 70 70 |pptext).|.// (cpp|
|00000310| 74 65 78 74 29 0d 0a 2f | 2f 20 28 63 70 70 74 65 |text)../|/ (cppte|
|00000320| 78 74 29 0d 0a 2f 2f 20 | 28 63 70 70 74 65 78 74 |xt)..// |(cpptext|
|00000330| 29 0d 0a 2f 2f 20 28 63 | 70 70 74 65 78 74 29 0d |)..// (c|pptext).|
|00000340| 0a 0d 0a 2f 2f 20 56 61 | 72 69 61 62 6c 65 73 0d |...// Va|riables.|
|00000350| 0a 0d 0a 76 61 72 09 09 | 47 55 49 43 6f 6d 70 6f |...var..|GUICompo|
|00000360| 6e 65 6e 74 20 09 09 4d | 65 6e 75 4f 77 6e 65 72 |nent ..M|enuOwner|
|00000370| 3b 09 09 09 09 2f 2f 20 | 43 61 6c 6c 62 61 63 6b |;....// |Callback|
|00000380| 20 74 6f 20 74 68 65 20 | 43 6f 6d 70 6f 6e 65 6e | to the |Componen|
|00000390| 74 20 74 68 61 74 20 6f | 77 6e 73 20 74 68 69 73 |t that o|wns this|
|000003a0| 20 6f 6e 65 0d 0a 76 61 | 72 09 09 65 4d 65 6e 75 | one..va|r..eMenu|
|000003b0| 53 74 61 74 65 09 09 4d | 65 6e 75 53 74 61 74 65 |State..M|enuState|
|000003c0| 3b 09 09 09 09 09 2f 2f | 20 55 73 65 64 20 74 6f |;.....//| Used to|
|000003d0| 20 64 65 74 65 72 6d 69 | 6e 65 20 74 68 65 20 63 | determi|ne the c|
|000003e0| 75 72 72 65 6e 74 20 73 | 74 61 74 65 20 6f 66 20 |urrent s|tate of |
|000003f0| 74 68 69 73 20 63 6f 6d | 70 6f 6e 65 6e 74 0d 0a |this com|ponent..|
|00000400| 0d 0a 2f 2f 20 52 65 6e | 64 65 72 53 74 79 6c 65 |..// Ren|derStyle|
|00000410| 20 61 6e 64 20 4d 65 6e | 75 43 6f 6c 6f 72 20 61 | and Men|uColor a|
|00000420| 72 65 20 75 73 75 61 6c | 6c 79 20 70 75 6c 6c 65 |re usual|ly pulle|
|00000430| 64 20 66 72 6f 6d 20 74 | 68 65 20 50 61 72 65 6e |d from t|he Paren|
|00000440| 74 20 6d 65 6e 75 2c 20 | 75 6e 6c 65 73 73 20 73 |t menu, |unless s|
|00000450| 70 65 63 69 66 69 63 6c | 6c 79 20 6f 76 65 72 72 |pecificl|ly overr|
|00000460| 69 64 64 65 6e 0d 0a 0d | 0a 76 61 72 28 4d 65 6e |idden...|.var(Men|
|00000470| 75 29 09 73 74 72 69 6e | 67 09 09 09 09 49 6e 69 |u).strin|g....Ini|
|00000480| 4f 70 74 69 6f 6e 3b 09 | 09 09 09 09 2f 2f 20 50 |Option;.|....// P|
|00000490| 6f 69 6e 74 73 20 74 6f | 20 74 68 65 20 49 4e 49 |oints to| the INI|
|000004a0| 20 6f 70 74 69 6f 6e 20 | 74 6f 20 6c 6f 61 64 20 | option |to load |
|000004b0| 66 6f 72 20 74 68 69 73 | 20 63 6f 6d 70 6f 6e 65 |for this| compone|
|000004c0| 6e 74 0d 0a 76 61 72 28 | 4d 65 6e 75 29 09 73 74 |nt..var(|Menu).st|
|000004d0| 72 69 6e 67 09 09 09 09 | 49 6e 69 44 65 66 61 75 |ring....|IniDefau|
|000004e0| 6c 74 3b 09 09 09 09 09 | 2f 2f 20 54 68 65 20 64 |lt;.....|// The d|
|000004f0| 65 66 61 75 6c 74 20 76 | 61 6c 75 65 20 66 6f 72 |efault v|alue for|
|00000500| 20 61 20 6d 69 73 73 69 | 6e 67 20 69 6e 69 20 6f | a missi|ng ini o|
|00000510| 70 74 69 6f 6e 0d 0a 76 | 61 72 28 4d 65 6e 75 29 |ption..v|ar(Menu)|
|00000520| 09 73 74 72 69 6e 67 09 | 09 09 09 53 74 79 6c 65 |.string.|...Style|
|00000530| 4e 61 6d 65 3b 09 09 09 | 09 09 2f 2f 20 4e 61 6d |Name;...|..// Nam|
|00000540| 65 20 6f 66 20 6d 79 20 | 53 74 79 6c 65 0d 0a 76 |e of my |Style..v|
|00000550| 61 72 28 4d 65 6e 75 29 | 09 62 6f 6f 6c 09 09 09 |ar(Menu)|.bool...|
|00000560| 09 62 42 6f 75 6e 64 54 | 6f 50 61 72 65 6e 74 3b |.bBoundT|oParent;|
|00000570| 09 09 09 09 2f 2f 20 55 | 73 65 20 74 68 65 20 50 |....// U|se the P|
|00000580| 61 72 65 6e 74 73 20 42 | 6f 75 6e 64 73 20 66 6f |arents B|ounds fo|
|00000590| 72 20 61 6c 6c 20 70 6f | 73 69 74 69 6f 6e 69 6e |r all po|sitionin|
|000005a0| 67 0d 0a 76 61 72 28 4d | 65 6e 75 29 09 62 6f 6f |g..var(M|enu).boo|
|000005b0| 6c 09 09 09 09 62 53 63 | 61 6c 65 54 6f 50 61 72 |l....bSc|aleToPar|
|000005c0| 65 6e 74 3b 09 09 09 09 | 2f 2f 20 55 73 65 20 74 |ent;....|// Use t|
|000005d0| 68 65 20 50 61 72 65 6e | 74 20 66 6f 72 20 73 63 |he Paren|t for sc|
|000005e0| 61 6c 69 6e 67 0d 0a 76 | 61 72 28 4d 65 6e 75 29 |aling..v|ar(Menu)|
|000005f0| 09 62 6f 6f 6c 09 09 09 | 09 62 48 61 73 46 6f 63 |.bool...|.bHasFoc|
|00000600| 75 73 3b 09 09 09 09 09 | 2f 2f 20 44 6f 65 73 20 |us;.....|// Does |
|00000610| 74 68 69 73 20 63 6f 6d | 70 6f 6e 65 6e 74 20 63 |this com|ponent c|
|00000620| 75 72 72 65 6e 74 6c 79 | 20 68 61 76 65 20 69 6e |urrently| have in|
|00000630| 70 75 74 20 66 6f 63 75 | 73 0d 0a 76 61 72 28 4d |put focu|s..var(M|
|00000640| 65 6e 75 29 09 62 6f 6f | 6c 09 09 09 09 62 56 69 |enu).boo|l....bVi|
|00000650| 73 69 62 6c 65 3b 09 09 | 09 09 09 2f 2f 20 49 73 |sible;..|...// Is|
|00000660| 20 74 68 69 73 20 63 6f | 6d 70 6f 6e 65 6e 74 20 | this co|mponent |
|00000670| 63 75 72 72 65 6e 74 6c | 79 20 76 69 73 69 62 6c |currentl|y visibl|
|00000680| 65 0d 0a 76 61 72 28 4d | 65 6e 75 29 09 62 6f 6f |e..var(M|enu).boo|
|00000690| 6c 09 09 09 09 62 41 63 | 63 65 70 74 73 49 6e 70 |l....bAc|ceptsInp|
|000006a0| 75 74 3b 09 09 09 09 2f | 2f 20 44 6f 65 73 20 74 |ut;..../|/ Does t|
|000006b0| 68 69 73 20 63 6f 6e 74 | 72 6f 6c 20 61 63 63 65 |his cont|rol acce|
|000006c0| 70 74 20 69 6e 70 75 74 | 0d 0a 76 61 72 28 4d 65 |pt input|..var(Me|
|000006d0| 6e 75 29 09 62 6f 6f 6c | 09 09 09 09 62 43 61 70 |nu).bool|....bCap|
|000006e0| 74 75 72 65 54 61 62 73 | 3b 09 09 09 09 2f 2f 20 |tureTabs|;....// |
|000006f0| 54 68 69 73 20 63 6f 6e | 74 72 6f 6c 20 77 61 6e |This con|trol wan|
|00000700| 74 73 20 74 61 62 73 0d | 0a 76 61 72 28 4d 65 6e |ts tabs.|.var(Men|
|00000710| 75 29 09 62 6f 6f 6c 09 | 09 09 09 62 43 61 70 74 |u).bool.|...bCapt|
|00000720| 75 72 65 4d 6f 75 73 65 | 3b 09 09 09 09 2f 2f 20 |ureMouse|;....// |
|00000730| 53 65 74 20 74 68 69 73 | 20 69 66 20 74 68 65 20 |Set this| if the |
|00000740| 63 6f 6e 74 72 6f 6c 20 | 73 68 6f 75 6c 64 20 63 |control |should c|
|00000750| 61 70 74 75 72 65 20 74 | 68 65 20 6d 6f 75 73 65 |apture t|he mouse|
|00000760| 20 77 68 65 6e 20 70 72 | 65 73 73 65 64 0d 0a 76 | when pr|essed..v|
|00000770| 61 72 28 4d 65 6e 75 29 | 09 62 6f 6f 6c 09 09 09 |ar(Menu)|.bool...|
|00000780| 09 62 4e 65 76 65 72 46 | 6f 63 75 73 3b 09 09 09 |.bNeverF|ocus;...|
|00000790| 09 2f 2f 20 54 68 69 73 | 20 63 6f 6e 74 72 6f 6c |.// This| control|
|000007a0| 20 73 68 6f 75 6c 64 20 | 6e 65 76 65 72 20 66 75 | should |never fu|
|000007b0| 6c 6c 79 20 72 65 63 65 | 69 76 65 20 66 6f 63 75 |lly rece|ive focu|
|000007c0| 73 0d 0a 76 61 72 28 4d | 65 6e 75 29 09 62 6f 6f |s..var(M|enu).boo|
|000007d0| 6c 09 09 09 09 62 52 65 | 70 65 61 74 43 6c 69 63 |l....bRe|peatClic|
|000007e0| 6b 3b 09 09 09 09 2f 2f | 20 48 61 76 65 20 74 68 |k;....//| Have th|
|000007f0| 65 20 73 79 73 74 65 6d | 20 61 63 63 65 70 74 20 |e system| accept |
|00000800| 68 6f 6c 64 69 6e 67 20 | 64 6f 77 6e 20 6f 66 20 |holding |down of |
|00000810| 74 68 65 20 6d 6f 75 73 | 65 0d 0a 76 61 72 28 4d |the mous|e..var(M|
|00000820| 65 6e 75 29 09 62 6f 6f | 6c 09 09 09 09 62 52 65 |enu).boo|l....bRe|
|00000830| 71 75 69 72 65 52 65 6c | 65 61 73 65 43 6c 69 63 |quireRel|easeClic|
|00000840| 6b 3b 09 09 2f 2f 20 49 | 66 20 54 72 75 65 2c 20 |k;..// I|f True, |
|00000850| 74 68 69 73 20 63 6f 6d | 70 6f 6e 65 6e 74 20 77 |this com|ponent w|
|00000860| 61 6e 74 73 20 74 68 65 | 20 63 6c 69 63 6b 20 6f |ants the| click o|
|00000870| 6e 20 72 65 6c 65 61 73 | 65 20 65 76 65 6e 20 69 |n releas|e even i|
|00000880| 66 20 69 74 27 73 20 6e | 6f 74 20 61 63 74 69 76 |f it's n|ot activ|
|00000890| 65 0d 0a 76 61 72 28 4d | 65 6e 75 29 09 47 55 49 |e..var(M|enu).GUI|
|000008a0| 43 6f 6d 70 6f 6e 65 6e | 74 09 09 46 6f 63 75 73 |Componen|t..Focus|
|000008b0| 49 6e 73 74 65 61 64 3b | 09 09 09 09 2f 2f 20 57 |Instead;|....// W|
|000008c0| 68 6f 20 73 68 6f 75 6c | 64 20 67 65 74 20 74 68 |ho shoul|d get th|
|000008d0| 65 20 66 6f 63 75 73 20 | 69 6e 73 74 65 61 64 20 |e focus |instead |
|000008e0| 6f 66 20 74 68 69 73 20 | 63 6f 6e 74 72 6f 6c 20 |of this |control |
|000008f0| 69 66 20 62 4e 65 76 65 | 72 46 6f 63 75 73 0d 0a |if bNeve|rFocus..|
|00000900| 76 61 72 28 4d 65 6e 75 | 29 09 6c 6f 63 61 6c 69 |var(Menu|).locali|
|00000910| 7a 65 64 20 73 74 72 69 | 6e 67 09 48 69 6e 74 3b |zed stri|ng.Hint;|
|00000920| 09 09 09 09 09 09 2f 2f | 20 54 68 65 20 68 69 6e |......//| The hin|
|00000930| 74 20 74 68 61 74 20 67 | 65 74 73 20 64 69 73 70 |t that g|ets disp|
|00000940| 6c 61 79 65 64 20 66 6f | 72 20 74 68 69 73 20 63 |layed fo|r this c|
|00000950| 6f 6d 70 6f 6e 65 6e 74 | 0d 0a 76 61 72 28 4d 65 |omponent|..var(Me|
|00000960| 6e 75 29 09 66 6c 6f 61 | 74 09 09 09 09 57 69 6e |nu).floa|t....Win|
|00000970| 54 6f 70 2c 57 69 6e 4c | 65 66 74 3b 09 09 09 09 |Top,WinL|eft;....|
|00000980| 2f 2f 20 57 68 65 72 65 | 20 64 6f 65 73 20 74 68 |// Where| does th|
|00000990| 69 73 20 63 6f 6d 70 6f | 6e 65 6e 74 20 65 78 69 |is compo|nent exi|
|000009a0| 73 74 20 28 69 6e 20 77 | 6f 72 6c 64 20 73 70 61 |st (in w|orld spa|
|000009b0| 63 65 29 20 2d 20 47 72 | 72 2e 2e 20 64 61 6d 6e |ce) - Gr|r.. damn|
|000009c0| 20 4c 65 66 74 28 29 0d | 0a 76 61 72 28 4d 65 6e | Left().|.var(Men|
|000009d0| 75 29 09 66 6c 6f 61 74 | 09 09 09 09 57 69 6e 57 |u).float|....WinW|
|000009e0| 69 64 74 68 2c 57 69 6e | 48 65 69 67 68 74 3b 09 |idth,Win|Height;.|
|000009f0| 09 09 2f 2f 20 57 68 65 | 72 65 20 64 6f 65 73 20 |..// Whe|re does |
|00000a00| 74 68 69 73 20 63 6f 6d | 70 6f 6e 65 6e 74 20 65 |this com|ponent e|
|00000a10| 78 69 73 74 20 28 69 6e | 20 77 6f 72 6c 64 20 73 |xist (in| world s|
|00000a20| 70 61 63 65 29 20 2d 20 | 47 72 72 2e 2e 20 64 61 |pace) - |Grr.. da|
|00000a30| 6d 6e 20 4c 65 66 74 28 | 29 0d 0a 76 61 72 28 4d |mn Left(|)..var(M|
|00000a40| 65 6e 75 29 09 69 6e 74 | 09 09 09 09 09 4d 6f 75 |enu).int|.....Mou|
|00000a50| 73 65 43 75 72 73 6f 72 | 49 6e 64 65 78 3b 09 09 |seCursor|Index;..|
|00000a60| 09 2f 2f 20 54 68 65 20 | 6d 6f 75 73 65 20 63 75 |.// The |mouse cu|
|00000a70| 72 73 6f 72 20 74 6f 20 | 75 73 65 20 77 68 65 6e |rsor to |use when|
|00000a80| 20 6f 76 65 72 20 74 68 | 69 73 20 63 6f 6e 74 72 | over th|is contr|
|00000a90| 6f 6c 0d 0a 76 61 72 28 | 4d 65 6e 75 29 09 62 6f |ol..var(|Menu).bo|
|00000aa0| 6f 6c 09 09 09 09 62 54 | 61 62 53 74 6f 70 3b 09 |ol....bT|abStop;.|
|00000ab0| 09 09 09 09 2f 2f 20 44 | 6f 65 73 20 61 20 54 41 |....// D|oes a TA|
|00000ac0| 42 2f 53 68 69 66 74 2d | 54 61 62 20 73 74 6f 70 |B/Shift-|Tab stop|
|00000ad0| 20 68 65 72 65 0d 0a 76 | 61 72 28 4d 65 6e 75 29 | here..v|ar(Menu)|
|00000ae0| 20 20 20 69 6e 74 09 09 | 09 09 09 54 61 62 4f 72 | int..|...TabOr|
|00000af0| 64 65 72 3b 09 09 09 09 | 09 2f 2f 20 55 73 65 64 |der;....|.// Used|
|00000b00| 20 74 6f 20 66 69 67 75 | 72 65 20 6f 75 74 20 74 | to figu|re out t|
|00000b10| 61 62 62 69 6e 67 0d 0a | 76 61 72 28 4d 65 6e 75 |abbing..|var(Menu|
|00000b20| 29 09 62 6f 6f 6c 09 09 | 09 09 62 46 6f 63 75 73 |).bool..|..bFocus|
|00000b30| 4f 6e 57 61 74 63 68 3b | 09 09 09 09 2f 2f 20 49 |OnWatch;|....// I|
|00000b40| 66 20 74 72 75 65 2c 20 | 77 61 74 63 68 69 6e 67 |f true, |watching|
|00000b50| 20 66 6f 63 75 73 65 73 | 0d 0a 76 61 72 28 4d 65 | focuses|..var(Me|
|00000b60| 6e 75 29 09 66 6c 6f 61 | 74 09 09 09 09 52 65 6e |nu).floa|t....Ren|
|00000b70| 64 65 72 57 65 69 67 68 | 74 3b 09 09 09 09 2f 2f |derWeigh|t;....//|
|00000b80| 20 55 73 65 64 20 74 6f | 20 64 65 74 65 72 6d 69 | Used to| determi|
|00000b90| 6e 65 20 73 6f 72 74 69 | 6e 67 20 69 6e 20 74 68 |ne sorti|ng in th|
|00000ba0| 65 20 63 6f 6e 74 72 6f | 6c 73 20 73 74 61 63 6b |e contro|ls stack|
|00000bb0| 0d 0a 76 61 72 28 4d 65 | 6e 75 29 09 69 6e 74 09 |..var(Me|nu).int.|
|00000bc0| 09 09 09 09 54 61 67 3b | 09 09 09 09 09 09 2f 2f |....Tag;|......//|
|00000bd0| 20 4e 6f 74 20 75 73 65 | 64 2e 0d 0a 76 61 72 28 | Not use|d...var(|
|00000be0| 4d 65 6e 75 29 09 47 55 | 49 4c 61 62 65 6c 09 09 |Menu).GU|ILabel..|
|00000bf0| 09 46 72 69 65 6e 64 6c | 79 4c 61 62 65 6c 3b 09 |.Friendl|yLabel;.|
|00000c00| 09 09 09 2f 2f 20 4d 79 | 20 73 74 61 74 65 20 69 |...// My| state i|
|00000c10| 73 20 70 72 6f 6a 65 63 | 74 65 64 20 6f 6e 20 74 |s projec|ted on t|
|00000c20| 68 69 73 20 6f 62 6a 65 | 63 74 73 20 73 74 61 74 |his obje|cts stat|
|00000c30| 65 2e 0d 0a 76 61 72 28 | 4d 65 6e 75 29 09 62 6f |e...var(|Menu).bo|
|00000c40| 6f 6c 09 09 09 09 62 4d | 6f 75 73 65 4f 76 65 72 |ol....bM|ouseOver|
|00000c50| 53 6f 75 6e 64 3b 09 09 | 09 2f 2f 20 53 68 6f 75 |Sound;..|.// Shou|
|00000c60| 6c 64 20 63 6f 6d 70 6f | 6e 65 6e 74 20 62 6c 65 |ld compo|nent ble|
|00000c70| 65 70 20 77 68 65 6e 20 | 6d 6f 75 73 65 20 67 6f |ep when |mouse go|
|00000c80| 65 73 20 6f 76 65 72 20 | 69 74 0d 0a 76 61 72 28 |es over |it..var(|
|00000c90| 4d 65 6e 75 29 09 65 6e | 75 6d 09 09 09 09 45 43 |Menu).en|um....EC|
|00000ca0| 6c 69 63 6b 53 6f 75 6e | 64 0d 0a 7b 0d 0a 09 43 |lickSoun|d..{...C|
|00000cb0| 53 5f 4e 6f 6e 65 2c 0d | 0a 09 43 53 5f 43 6c 69 |S_None,.|..CS_Cli|
|00000cc0| 63 6b 2c 0d 0a 09 43 53 | 5f 45 64 69 74 2c 0d 0a |ck,...CS|_Edit,..|
|00000cd0| 09 43 53 5f 55 70 2c 0d | 0a 09 43 53 5f 44 6f 77 |.CS_Up,.|..CS_Dow|
|00000ce0| 6e 0d 0a 7d 20 4f 6e 43 | 6c 69 63 6b 53 6f 75 6e |n..} OnC|lickSoun|
|00000cf0| 64 3b 0d 0a 0d 0a 2f 2f | 20 53 74 79 6c 65 20 68 |d;....//| Style h|
|00000d00| 6f 6c 64 73 20 61 20 70 | 6f 69 6e 74 65 72 20 74 |olds a p|ointer t|
|00000d10| 6f 20 74 68 65 20 47 55 | 49 20 73 74 79 6c 65 20 |o the GU|I style |
|00000d20| 6f 66 20 74 68 69 73 20 | 63 6f 6d 70 6f 6e 65 6e |of this |componen|
|00000d30| 74 2e 0d 0a 0d 0a 76 61 | 72 09 09 09 47 55 49 53 |t.....va|r...GUIS|
|00000d40| 74 79 6c 65 73 09 09 20 | 53 74 79 6c 65 3b 09 09 |tyles.. |Style;..|
|00000d50| 09 09 09 09 2f 2f 20 4d | 79 20 47 55 49 20 53 74 |....// M|y GUI St|
|00000d60| 79 6c 65 0d 0a 0d 0a 2f | 2f 20 4e 6f 74 65 73 20 |yle..../|/ Notes |
|00000d70| 61 62 6f 75 74 20 74 68 | 65 20 54 6f 70 2f 4c 65 |about th|e Top/Le|
|00000d80| 66 74 2f 57 69 64 74 68 | 2f 48 65 69 67 68 74 20 |ft/Width|/Height |
|00000d90| 3a 20 54 68 69 73 20 69 | 73 20 61 20 73 6f 6d 65 |: This i|s a some|
|00000da0| 77 68 61 74 20 68 61 63 | 6b 20 62 75 74 20 69 74 |what hac|k but it|
|00000db0| 27 73 20 72 65 61 6c 6c | 79 20 67 6f 6f 64 20 66 |'s reall|y good f|
|00000dc0| 6f 72 20 66 75 6e 63 74 | 69 6f 6e 61 6c 69 74 79 |or funct|ionality|
|00000dd0| 2e 20 20 49 66 0d 0a 2f | 2f 20 74 68 65 20 76 61 |. If../|/ the va|
|00000de0| 6c 75 65 20 69 73 20 3c | 3d 31 2c 20 74 68 65 6e |lue is <|=1, then|
|00000df0| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c 20 69 73 20 | the con|trol is |
|00000e00| 63 6f 6e 73 69 64 65 72 | 65 64 20 74 6f 20 62 65 |consider|ed to be|
|00000e10| 20 73 63 61 6c 65 64 2e | 20 20 49 66 20 74 68 65 | scaled.| If the|
|00000e20| 79 20 61 72 65 20 3e 31 | 20 74 68 65 79 20 61 72 |y are >1| they ar|
|00000e30| 65 20 63 6f 6e 73 69 64 | 65 72 65 64 20 74 6f 20 |e consid|ered to |
|00000e40| 62 65 20 6e 6f 72 6d 61 | 6c 20 77 6f 72 6c 64 20 |be norma|l world |
|00000e50| 63 6f 6f 72 64 73 2e 0d | 0a 2f 2f 20 30 20 3d 20 |coords..|.// 0 = |
|00000e60| 30 2c 20 31 20 3d 20 31 | 30 30 25 0d 0a 0d 0a 76 |0, 1 = 1|00%....v|
|00000e70| 61 72 09 09 09 66 6c 6f | 61 74 09 09 42 6f 75 6e |ar...flo|at..Boun|
|00000e80| 64 73 5b 34 5d 3b 09 09 | 09 09 09 09 09 09 2f 2f |ds[4];..|......//|
|00000e90| 20 49 6e 74 65 72 6e 61 | 6c 20 6e 6f 72 6d 61 6c | Interna|l normal|
|00000ea0| 69 7a 65 64 20 70 6f 73 | 69 74 69 6f 6e 73 20 69 |ized pos|itions i|
|00000eb0| 6e 20 77 6f 72 6c 64 20 | 73 70 61 63 65 0d 0a 76 |n world |space..v|
|00000ec0| 61 72 09 09 09 66 6c 6f | 61 74 09 09 43 6c 69 65 |ar...flo|at..Clie|
|00000ed0| 6e 74 42 6f 75 6e 64 73 | 5b 34 5d 3b 09 09 09 09 |ntBounds|[4];....|
|00000ee0| 09 09 2f 2f 20 54 68 65 | 20 62 6f 75 6e 64 73 20 |..// The| bounds |
|00000ef0| 6f 66 20 74 68 65 20 61 | 63 74 75 61 6c 20 63 6c |of the a|ctual cl|
|00000f00| 69 65 6e 74 20 61 72 65 | 61 20 28 6d 69 6e 75 73 |ient are|a (minus|
|00000f10| 20 61 6e 79 20 62 6f 72 | 64 65 72 73 29 0d 0a 0d | any bor|ders)...|
|00000f20| 0a 76 61 72 09 09 09 62 | 6f 6f 6c 09 09 62 50 65 |.var...b|ool..bPe|
|00000f30| 6e 64 69 6e 67 46 6f 63 | 75 73 3b 09 09 09 09 09 |ndingFoc|us;.....|
|00000f40| 09 09 2f 2f 20 42 69 67 | 20 62 69 67 20 68 61 63 |..// Big| big hac|
|00000f50| 6b 20 66 6f 72 20 43 6f | 6d 62 6f 42 6f 78 65 73 |k for Co|mboBoxes|
|00000f60| 2e 2e 0d 0a 0d 0a 2f 2f | 20 54 69 6d 65 72 20 53 |......//| Timer S|
|00000f70| 75 70 70 6f 72 74 0d 0a | 76 61 72 20 63 6f 6e 73 |upport..|var cons|
|00000f80| 74 09 69 6e 74 09 09 09 | 54 69 6d 65 72 49 6e 64 |t.int...|TimerInd|
|00000f90| 65 78 3b 09 09 09 2f 2f | 20 46 6f 72 20 65 61 73 |ex;...//| For eas|
|00000fa0| 69 65 72 20 6d 61 69 6e | 74 65 6e 61 6e 63 65 0d |ier main|tenance.|
|00000fb0| 0a 76 61 72 09 09 09 62 | 6f 6f 6c 09 09 62 54 69 |.var...b|ool..bTi|
|00000fc0| 6d 65 72 52 65 70 65 61 | 74 3b 0d 0a 76 61 72 09 |merRepea|t;..var.|
|00000fd0| 09 09 66 6c 6f 61 74 09 | 09 54 69 6d 65 72 43 6f |..float.|.TimerCo|
|00000fe0| 75 6e 74 64 6f 77 6e 3b | 0d 0a 76 61 72 09 09 09 |untdown;|..var...|
|00000ff0| 66 6c 6f 61 74 09 09 54 | 69 6d 65 72 49 6e 74 65 |float..T|imerInte|
|00001000| 72 76 61 6c 3b 0d 0a 0d | 0a 2f 2f 20 55 73 65 64 |rval;...|.// Used|
|00001010| 20 66 6f 72 20 53 61 76 | 69 6e 67 20 74 68 65 20 | for Sav|ing the |
|00001020| 6c 61 73 74 20 73 74 61 | 74 65 20 62 65 66 6f 72 |last sta|te befor|
|00001030| 65 20 64 72 61 77 69 6e | 67 20 6e 61 74 69 76 65 |e drawin|g native|
|00001040| 6c 79 0d 0a 0d 0a 76 61 | 72 09 09 66 6c 6f 61 74 |ly....va|r..float|
|00001050| 20 09 53 61 76 65 58 2c | 53 61 76 65 59 3b 0d 0a | .SaveX,|SaveY;..|
|00001060| 76 61 72 20 09 63 6f 6c | 6f 72 09 53 61 76 65 43 |var .col|or.SaveC|
|00001070| 6f 6c 6f 72 3b 0d 0a 76 | 61 72 09 09 66 6f 6e 74 |olor;..v|ar..font|
|00001080| 09 53 61 76 65 46 6f 6e | 74 3b 0d 0a 76 61 72 09 |.SaveFon|t;..var.|
|00001090| 09 62 79 74 65 09 53 61 | 76 65 53 74 79 6c 65 3b |.byte.Sa|veStyle;|
|000010a0| 0d 0a 0d 0a 2f 2f 20 49 | 66 20 79 6f 75 20 77 61 |....// I|f you wa|
|000010b0| 6e 74 20 74 6f 20 6f 76 | 65 72 72 69 64 65 20 61 |nt to ov|erride a|
|000010c0| 20 6c 69 6e 6b 20 74 6f | 20 66 6f 72 63 65 20 74 | link to| force t|
|000010d0| 68 69 73 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 74 6f |his comp|onent to|
|000010e0| 20 70 6f 69 6e 74 20 74 | 6f 20 61 20 67 69 76 65 | point t|o a give|
|000010f0| 6e 0d 0a 2f 2f 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |n..// co|mponent |
|00001100| 6f 6e 20 79 6f 75 72 20 | 70 61 67 65 2c 20 73 65 |on your |page, se|
|00001110| 74 20 69 74 20 68 65 72 | 65 2e 0d 0a 0d 0a 2f 2f |t it her|e.....//|
|00001120| 20 30 20 3d 20 55 70 0d | 0a 2f 2f 20 31 20 3d 20 | 0 = Up.|.// 1 = |
|00001130| 44 6f 77 6e 0d 0a 2f 2f | 20 32 20 3d 20 4c 65 66 |Down..//| 2 = Lef|
|00001140| 74 0d 0a 2f 2f 20 33 20 | 3d 20 52 69 67 68 74 0d |t..// 3 |= Right.|
|00001150| 0a 76 61 72 20 47 55 49 | 43 6f 6d 70 6f 6e 65 6e |.var GUI|Componen|
|00001160| 74 20 4c 69 6e 6b 4f 76 | 65 72 72 69 64 65 73 5b |t LinkOv|errides[|
|00001170| 34 5d 3b 0d 0a 76 61 72 | 20 47 55 49 43 6f 6d 70 |4];..var| GUIComp|
|00001180| 6f 6e 65 6e 74 20 4c 69 | 6e 6b 73 5b 34 5d 3b 0d |onent Li|nks[4];.|
|00001190| 0a 0d 0a 2f 2f 20 44 65 | 6c 65 67 61 74 65 73 0d |...// De|legates.|
|000011a0| 0a 0d 0a 2f 2f 20 44 72 | 61 77 69 6e 67 20 64 65 |...// Dr|awing de|
|000011b0| 6c 65 67 61 74 65 73 20 | 72 65 74 75 72 6e 20 74 |legates |return t|
|000011c0| 72 75 65 20 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |rue if y|ou want |
|000011d0| 74 6f 20 73 68 6f 72 74 | 2d 63 69 72 63 75 69 74 |to short|-circuit|
|000011e0| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 64 72 61 | the def|ault dra|
|000011f0| 77 69 6e 67 20 63 6f 64 | 65 0d 0a 0d 0a 44 65 6c |wing cod|e....Del|
|00001200| 65 67 61 74 65 20 62 6f | 6f 6c 20 4f 6e 50 72 65 |egate bo|ol OnPre|
|00001210| 44 72 61 77 28 43 61 6e | 76 61 73 20 43 61 6e 76 |Draw(Can|vas Canv|
|00001220| 61 73 29 3b 0d 0a 44 65 | 6c 65 67 61 74 65 20 62 |as);..De|legate b|
|00001230| 6f 6f 6c 20 4f 6e 44 72 | 61 77 28 43 61 6e 76 61 |ool OnDr|aw(Canva|
|00001240| 73 20 43 61 6e 76 61 73 | 29 3b 0d 0a 0d 0a 44 65 |s Canvas|);....De|
|00001250| 6c 65 67 61 74 65 20 4f | 6e 41 63 74 69 76 61 74 |legate O|nActivat|
|00001260| 65 28 29 3b 09 09 09 09 | 09 09 09 09 09 09 09 09 |e();....|........|
|00001270| 09 2f 2f 20 43 61 6c 6c | 65 64 20 77 68 65 6e 20 |.// Call|ed when |
|00001280| 74 68 65 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 67 61 |the comp|onent ga|
|00001290| 69 6e 73 20 66 6f 63 75 | 73 0d 0a 44 65 6c 65 67 |ins focu|s..Deleg|
|000012a0| 61 74 65 20 4f 6e 44 65 | 41 63 74 69 76 61 74 65 |ate OnDe|Activate|
|000012b0| 28 29 3b 09 09 09 09 09 | 09 09 09 09 09 09 09 2f |();.....|......./|
|000012c0| 2f 20 43 61 6c 6c 65 64 | 20 77 68 65 6e 20 74 68 |/ Called| when th|
|000012d0| 65 20 63 6f 6d 70 6f 6e | 65 6e 74 20 6c 6f 73 65 |e compon|ent lose|
|000012e0| 73 20 66 6f 63 75 73 0d | 0a 44 65 6c 65 67 61 74 |s focus.|.Delegat|
|000012f0| 65 20 4f 6e 57 61 74 63 | 68 28 29 3b 09 09 09 09 |e OnWatc|h();....|
|00001300| 09 09 09 09 09 09 09 09 | 09 09 2f 2f 20 43 61 6c |........|..// Cal|
|00001310| 6c 65 64 20 77 68 65 6e | 20 74 68 65 20 63 6f 6d |led when| the com|
|00001320| 70 6f 6e 65 6e 74 20 69 | 73 20 62 65 69 6e 67 20 |ponent i|s being |
|00001330| 77 61 74 63 68 65 64 0d | 0a 44 65 6c 65 67 61 74 |watched.|.Delegat|
|00001340| 65 20 4f 6e 48 69 74 54 | 65 73 74 28 66 6c 6f 61 |e OnHitT|est(floa|
|00001350| 74 20 4d 6f 75 73 65 58 | 2c 20 66 6c 6f 61 74 20 |t MouseX|, float |
|00001360| 4d 6f 75 73 65 59 29 3b | 09 09 09 09 09 09 09 2f |MouseY);|......./|
|00001370| 2f 20 43 61 6c 6c 65 64 | 20 77 68 65 6e 20 48 69 |/ Called| when Hi|
|00001380| 74 20 74 65 73 74 20 69 | 73 20 70 65 72 66 6f 72 |t test i|s perfor|
|00001390| 6d 65 64 20 66 6f 72 20 | 6d 6f 75 73 65 20 69 6e |med for |mouse in|
|000013a0| 70 75 74 0d 0a 44 65 6c | 65 67 61 74 65 20 4f 6e |put..Del|egate On|
|000013b0| 52 65 6e 64 65 72 28 63 | 61 6e 76 61 73 20 43 61 |Render(c|anvas Ca|
|000013c0| 6e 76 61 73 29 3b 09 09 | 09 09 09 09 09 09 09 09 |nvas);..|........|
|000013d0| 2f 2f 20 43 61 6c 6c 65 | 64 20 77 68 65 6e 20 74 |// Calle|d when t|
|000013e0| 68 65 20 63 6f 6d 70 6f | 6e 65 6e 74 20 69 73 20 |he compo|nent is |
|000013f0| 72 65 6e 64 65 72 65 64 | 0d 0a 44 65 6c 65 67 61 |rendered|..Delega|
|00001400| 74 65 20 4f 6e 4d 65 73 | 73 61 67 65 28 63 6f 65 |te OnMes|sage(coe|
|00001410| 72 63 65 20 73 74 72 69 | 6e 67 20 4d 73 67 2c 20 |rce stri|ng Msg, |
|00001420| 66 6c 6f 61 74 20 4d 73 | 67 4c 69 66 65 29 3b 20 |float Ms|gLife); |
|00001430| 09 09 09 09 09 2f 2f 20 | 57 68 65 6e 20 61 20 6d |.....// |When a m|
|00001440| 65 73 73 61 67 65 20 63 | 6f 6d 65 73 20 64 6f 77 |essage c|omes dow|
|00001450| 6e 20 74 68 65 20 6c 69 | 6e 65 0d 0a 0d 0a 44 65 |n the li|ne....De|
|00001460| 6c 65 67 61 74 65 20 4f | 6e 48 69 64 65 28 29 3b |legate O|nHide();|
|00001470| 0d 0a 44 65 6c 65 67 61 | 74 65 20 4f 6e 53 68 6f |..Delega|te OnSho|
|00001480| 77 28 29 3b 0d 0a 0d 0a | 44 65 6c 65 67 61 74 65 |w();....|Delegate|
|00001490| 20 4f 6e 49 6e 76 61 6c | 69 64 61 74 65 28 47 55 | OnInval|idate(GU|
|000014a0| 49 43 6f 6d 70 6f 6e 65 | 6e 74 20 57 68 6f 29 3b |ICompone|nt Who);|
|000014b0| 09 2f 2f 20 43 61 6c 6c | 65 64 20 77 68 65 6e 20 |.// Call|ed when |
|000014c0| 74 68 65 20 62 61 63 6b | 67 72 6f 75 6e 64 20 69 |the back|ground i|
|000014d0| 73 20 63 6c 69 63 6b 65 | 64 0d 0a 0d 0a 2f 2f 20 |s clicke|d....// |
|000014e0| 2d 2d 20 49 6e 70 75 74 | 20 65 76 65 6e 74 20 64 |-- Input| event d|
|000014f0| 65 6c 65 67 61 74 65 73 | 0d 0a 0d 0a 44 65 6c 65 |elegates|....Dele|
|00001500| 67 61 74 65 20 62 6f 6f | 6c 20 4f 6e 43 6c 69 63 |gate boo|l OnClic|
|00001510| 6b 28 47 55 49 43 6f 6d | 70 6f 6e 65 6e 74 20 53 |k(GUICom|ponent S|
|00001520| 65 6e 64 65 72 29 3b 09 | 09 09 2f 2f 20 54 68 65 |ender);.|..// The|
|00001530| 20 6d 6f 75 73 65 20 77 | 61 73 20 63 6c 69 63 6b | mouse w|as click|
|00001540| 65 64 20 6f 6e 20 74 68 | 69 73 20 63 6f 6e 74 72 |ed on th|is contr|
|00001550| 6f 6c 0d 0a 44 65 6c 65 | 67 61 74 65 20 62 6f 6f |ol..Dele|gate boo|
|00001560| 6c 20 4f 6e 44 62 6c 43 | 6c 69 63 6b 28 47 55 49 |l OnDblC|lick(GUI|
|00001570| 43 6f 6d 70 6f 6e 65 6e | 74 20 53 65 6e 64 65 72 |Componen|t Sender|
|00001580| 29 3b 09 09 2f 2f 20 54 | 68 65 20 6d 6f 75 73 65 |);..// T|he mouse|
|00001590| 20 77 61 73 20 64 6f 75 | 62 6c 65 2d 63 6c 69 63 | was dou|ble-clic|
|000015a0| 6b 65 64 20 6f 6e 20 74 | 68 69 73 20 63 6f 6e 74 |ked on t|his cont|
|000015b0| 72 6f 6c 0d 0a 44 65 6c | 65 67 61 74 65 20 62 6f |rol..Del|egate bo|
|000015c0| 6f 6c 20 4f 6e 52 69 67 | 68 74 43 6c 69 63 6b 28 |ol OnRig|htClick(|
|000015d0| 47 55 49 43 6f 6d 70 6f | 6e 65 6e 74 20 53 65 6e |GUICompo|nent Sen|
|000015e0| 64 65 72 29 3b 09 2f 2f | 20 43 6f 6e 74 72 6f 6c |der);.//| Control|
|000015f0| 20 77 61 73 20 72 69 67 | 68 74 20 63 6c 69 63 6b | was rig|ht click|
|00001600| 65 64 2e 0d 0a 0d 0a 44 | 65 6c 65 67 61 74 65 20 |ed.....D|elegate |
|00001610| 4f 6e 4d 6f 75 73 65 50 | 72 65 73 73 65 64 28 47 |OnMouseP|ressed(G|
|00001620| 55 49 43 6f 6d 70 6f 6e | 65 6e 74 20 53 65 6e 64 |UICompon|ent Send|
|00001630| 65 72 2c 20 62 6f 6f 6c | 20 62 52 65 70 65 61 74 |er, bool| bRepeat|
|00001640| 29 3b 09 09 2f 2f 20 53 | 65 6e 74 20 77 68 65 6e |);..// S|ent when|
|00001650| 20 61 20 6d 6f 75 73 65 | 20 69 73 20 70 72 65 73 | a mouse| is pres|
|00001660| 73 65 64 20 28 69 6e 69 | 74 69 61 6c 6c 79 29 0d |sed (ini|tially).|
|00001670| 0a 44 65 6c 65 67 61 74 | 65 20 4f 6e 4d 6f 75 73 |.Delegat|e OnMous|
|00001680| 65 52 65 6c 65 61 73 65 | 28 47 55 49 43 6f 6d 70 |eRelease|(GUIComp|
|00001690| 6f 6e 65 6e 74 20 53 65 | 6e 64 65 72 29 3b 09 09 |onent Se|nder);..|
|000016a0| 2f 2f 20 53 65 6e 74 20 | 77 68 65 6e 20 74 68 65 |// Sent |when the|
|000016b0| 20 6d 6f 75 73 65 20 69 | 73 20 72 65 6c 65 61 73 | mouse i|s releas|
|000016c0| 65 64 2e 0d 0a 0d 0a 44 | 65 6c 65 67 61 74 65 20 |ed.....D|elegate |
|000016d0| 4f 6e 43 68 61 6e 67 65 | 28 47 55 49 43 6f 6d 70 |OnChange|(GUIComp|
|000016e0| 6f 6e 65 6e 74 20 53 65 | 6e 64 65 72 29 3b 09 2f |onent Se|nder);./|
|000016f0| 2f 20 43 61 6c 6c 65 64 | 20 77 68 65 6e 20 61 20 |/ Called| when a |
|00001700| 63 6f 6d 70 6f 6e 65 6e | 74 20 63 68 61 6e 67 65 |componen|t change|
|00001710| 73 20 69 74 27 73 20 76 | 61 6c 75 65 0d 0a 0d 0a |s it's v|alue....|
|00001720| 44 65 6c 65 67 61 74 65 | 20 62 6f 6f 6c 20 4f 6e |Delegate| bool On|
|00001730| 4b 65 79 54 79 70 65 28 | 6f 75 74 20 62 79 74 65 |KeyType(|out byte|
|00001740| 20 4b 65 79 2c 20 6f 70 | 74 69 6f 6e 61 6c 20 73 | Key, op|tional s|
|00001750| 74 72 69 6e 67 20 55 6e | 69 63 6f 64 65 29 20 20 |tring Un|icode) |
|00001760| 09 2f 2f 20 4b 65 79 20 | 53 74 72 6f 6b 65 73 0d |.// Key |Strokes.|
|00001770| 0a 7b 0d 0a 09 72 65 74 | 75 72 6e 20 66 61 6c 73 |.{...ret|urn fals|
|00001780| 65 3b 0d 0a 7d 0d 0a 0d | 0a 44 65 6c 65 67 61 74 |e;..}...|.Delegat|
|00001790| 65 20 62 6f 6f 6c 20 4f | 6e 4b 65 79 45 76 65 6e |e bool O|nKeyEven|
|000017a0| 74 28 6f 75 74 20 62 79 | 74 65 20 4b 65 79 2c 20 |t(out by|te Key, |
|000017b0| 6f 75 74 20 62 79 74 65 | 20 53 74 61 74 65 2c 20 |out byte| State, |
|000017c0| 66 6c 6f 61 74 20 64 65 | 6c 74 61 29 0d 0a 7b 0d |float de|lta)..{.|
|000017d0| 0a 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|000017e0| 0a 7d 0d 0a 0d 0a 44 65 | 6c 65 67 61 74 65 20 62 |.}....De|legate b|
|000017f0| 6f 6f 6c 20 4f 6e 43 61 | 70 74 75 72 65 64 4d 6f |ool OnCa|pturedMo|
|00001800| 75 73 65 4d 6f 76 65 28 | 66 6c 6f 61 74 20 64 65 |useMove(|float de|
|00001810| 6c 74 61 58 2c 20 66 6c | 6f 61 74 20 64 65 6c 74 |ltaX, fl|oat delt|
|00001820| 61 59 29 0d 0a 7b 0d 0a | 09 72 65 74 75 72 6e 20 |aY)..{..|.return |
|00001830| 66 61 6c 73 65 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 |false;..|}....// |
|00001840| 41 6c 6c 6f 77 73 20 61 | 20 63 6f 6e 74 72 6f 6c |Allows a| control|
|00001850| 20 74 6f 20 70 72 6f 63 | 65 73 73 20 72 61 77 20 | to proc|ess raw |
|00001860| 43 6f 6e 73 6f 6c 65 20 | 63 6f 6e 74 72 6f 6c 6c |Console |controll|
|00001870| 65 72 20 65 76 65 6e 74 | 73 0d 0a 0d 0a 44 65 6c |er event|s....Del|
|00001880| 65 67 61 74 65 20 62 6f | 6f 6c 20 4f 6e 52 61 77 |egate bo|ol OnRaw|
|00001890| 58 43 6f 6e 74 72 6f 6c | 6c 65 72 28 62 79 74 65 |XControl|ler(byte|
|000018a0| 20 49 64 2c 20 6f 75 74 | 20 62 79 74 65 20 4b 65 | Id, out| byte Ke|
|000018b0| 79 2c 20 6f 75 74 20 62 | 79 74 65 20 53 74 61 74 |y, out b|yte Stat|
|000018c0| 65 2c 20 6f 75 74 20 66 | 6c 6f 61 74 20 41 78 69 |e, out f|loat Axi|
|000018d0| 73 29 0d 0a 7b 0d 0a 09 | 72 65 74 75 72 6e 20 66 |s)..{...|return f|
|000018e0| 61 6c 73 65 3b 0d 0a 7d | 0d 0a 0d 0a 44 65 6c 65 |alse;..}|....Dele|
|000018f0| 67 61 74 65 20 62 6f 6f | 6c 20 4f 6e 58 43 6f 6e |gate boo|l OnXCon|
|00001900| 74 72 6f 6c 6c 65 72 45 | 76 65 6e 74 28 62 79 74 |trollerE|vent(byt|
|00001910| 65 20 49 64 2c 20 65 58 | 43 6f 6e 74 72 6f 6c 6c |e Id, eX|Controll|
|00001920| 65 72 43 6f 64 65 73 20 | 69 43 6f 64 65 29 3b 20 |erCodes |iCode); |
|00001930| 2f 2f 20 58 42 6f 78 20 | 43 6f 6e 74 72 6f 6c 6c |// XBox |Controll|
|00001940| 65 72 20 45 76 65 6e 74 | 73 0d 0a 0d 0a 0d 0a 44 |er Event|s......D|
|00001950| 65 6c 65 67 61 74 65 20 | 4f 6e 4c 6f 61 64 49 4e |elegate |OnLoadIN|
|00001960| 49 28 47 55 49 43 6f 6d | 70 6f 6e 65 6e 74 20 53 |I(GUICom|ponent S|
|00001970| 65 6e 64 65 72 2c 20 73 | 74 72 69 6e 67 20 73 29 |ender, s|tring s)|
|00001980| 3b 09 09 2f 2f 20 44 6f | 20 74 68 65 20 61 63 74 |;..// Do| the act|
|00001990| 75 61 6c 20 77 6f 72 6b | 20 68 65 72 65 0d 0a 44 |ual work| here..D|
|000019a0| 65 6c 65 67 61 74 65 20 | 73 74 72 69 6e 67 20 4f |elegate |string O|
|000019b0| 6e 53 61 76 65 49 4e 49 | 28 47 55 49 43 6f 6d 70 |nSaveINI|(GUIComp|
|000019c0| 6f 6e 65 6e 74 20 53 65 | 6e 64 65 72 29 3b 20 09 |onent Se|nder); .|
|000019d0| 09 2f 2f 20 44 6f 20 74 | 68 65 20 61 63 74 75 61 |.// Do t|he actua|
|000019e0| 6c 20 77 6f 72 6b 20 68 | 65 72 65 0d 0a 0d 0a 65 |l work h|ere....e|
|000019f0| 76 65 6e 74 20 4f 70 65 | 6e 65 64 28 47 55 49 43 |vent Ope|ned(GUIC|
|00001a00| 6f 6d 70 6f 6e 65 6e 74 | 20 53 65 6e 64 65 72 29 |omponent| Sender)|
|00001a10| 3b 09 2f 2f 20 43 61 6c | 6c 65 64 20 77 68 65 6e |;.// Cal|led when|
|00001a20| 20 74 68 65 20 4d 65 6e | 75 20 4f 77 6e 65 72 20 | the Men|u Owner |
|00001a30| 69 73 20 6f 70 65 6e 65 | 64 0d 0a 65 76 65 6e 74 |is opene|d..event|
|00001a40| 20 43 6c 6f 73 65 64 28 | 47 55 49 43 6f 6d 70 6f | Closed(|GUICompo|
|00001a50| 6e 65 6e 74 20 53 65 6e | 64 65 72 2c 20 62 6f 6f |nent Sen|der, boo|
|00001a60| 6c 20 62 43 61 6e 63 65 | 6c 6c 65 64 29 3b 09 2f |l bCance|lled);./|
|00001a70| 2f 20 43 61 6c 6c 65 64 | 20 77 68 65 6e 20 74 68 |/ Called| when th|
|00001a80| 65 20 4d 65 6e 75 20 4f | 77 6e 65 72 20 69 73 20 |e Menu O|wner is |
|00001a90| 63 6c 6f 73 65 64 0d 0a | 0d 0a 65 76 65 6e 74 20 |closed..|..event |
|00001aa0| 46 72 65 65 28 29 20 09 | 09 09 2f 2f 20 54 68 69 |Free() .|..// Thi|
|00001ab0| 73 20 63 6f 6e 74 72 6f | 6c 20 69 73 20 6e 6f 20 |s contro|l is no |
|00001ac0| 6c 6f 6e 67 65 72 20 6e | 65 65 64 65 64 0d 0a 7b |longer n|eeded..{|
|00001ad0| 0d 0a 09 4d 65 6e 75 4f | 77 6e 65 72 20 09 09 3d |...MenuO|wner ..=|
|00001ae0| 20 4e 6f 6e 65 3b 0d 0a | 20 20 20 20 43 6f 6e 74 | None;..| Cont|
|00001af0| 72 6f 6c 6c 65 72 09 20 | 09 3d 20 4e 6f 6e 65 3b |roller. |.= None;|
|00001b00| 0d 0a 20 20 20 20 46 6f | 63 75 73 49 6e 73 74 65 |.. Fo|cusInste|
|00001b10| 61 64 20 09 3d 20 4e 6f | 6e 65 3b 0d 0a 20 20 20 |ad .= No|ne;.. |
|00001b20| 20 46 72 69 65 6e 64 6c | 79 4c 61 62 65 6c 20 09 | Friendl|yLabel .|
|00001b30| 3d 20 4e 6f 6e 65 3b 0d | 0a 20 20 20 20 53 74 79 |= None;.|. Sty|
|00001b40| 6c 65 09 09 09 3d 20 4e | 6f 6e 65 3b 0d 0a 7d 0d |le...= N|one;..}.|
|00001b50| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 50 6c 61 79 |...funct|ion Play|
|00001b60| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 20 50 6c 61 |erContro|ller Pla|
|00001b70| 79 65 72 4f 77 6e 65 72 | 28 29 0d 0a 7b 0d 0a 09 |yerOwner|()..{...|
|00001b80| 72 65 74 75 72 6e 20 43 | 6f 6e 74 72 6f 6c 6c 65 |return C|ontrolle|
|00001b90| 72 2e 56 69 65 77 70 6f | 72 74 4f 77 6e 65 72 2e |r.Viewpo|rtOwner.|
|00001ba0| 41 63 74 6f 72 3b 0d 0a | 7d 0d 0a 0d 0a 0d 0a 65 |Actor;..|}......e|
|00001bb0| 76 65 6e 74 20 54 69 6d | 65 72 28 29 3b 09 09 2f |vent Tim|er();../|
|00001bc0| 2f 20 53 68 6f 75 6c 64 | 20 62 65 20 73 75 62 63 |/ Should| be subc|
|00001bd0| 6c 61 73 73 65 64 0d 0a | 0d 0a 66 75 6e 63 74 69 |lassed..|..functi|
|00001be0| 6f 6e 20 6e 61 74 69 76 | 65 20 66 69 6e 61 6c 20 |on nativ|e final |
|00001bf0| 53 65 74 54 69 6d 65 72 | 28 66 6c 6f 61 74 20 49 |SetTimer|(float I|
|00001c00| 6e 74 65 72 76 61 6c 2c | 20 6f 70 74 69 6f 6e 61 |nterval,| optiona|
|00001c10| 6c 20 62 6f 6f 6c 20 62 | 52 65 70 65 61 74 29 3b |l bool b|Repeat);|
|00001c20| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 6e 61 74 69 76 |..functi|on nativ|
|00001c30| 65 20 66 69 6e 61 6c 20 | 4b 69 6c 6c 54 69 6d 65 |e final |KillTime|
|00001c40| 72 28 29 3b 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |r();....|function|
|00001c50| 20 73 74 72 69 6e 67 20 | 4c 6f 61 64 49 4e 49 28 | string |LoadINI(|
|00001c60| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 73 74 72 |)..{...l|ocal str|
|00001c70| 69 6e 67 20 73 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |ing s;..|...if ( |
|00001c80| 28 50 6c 61 79 65 72 4f | 77 6e 65 72 28 29 3d 3d |(PlayerO|wner()==|
|00001c90| 4e 6f 6e 65 29 20 7c 7c | 20 28 49 4e 49 4f 70 74 |None) ||| (INIOpt|
|00001ca0| 69 6f 6e 3d 3d 22 22 29 | 20 29 0d 0a 09 09 72 65 |ion=="")| )....re|
|00001cb0| 74 75 72 6e 20 22 22 3b | 0d 0a 0d 0a 09 69 66 28 |turn "";|.....if(|
|00001cc0| 21 28 49 4e 49 4f 70 74 | 69 6f 6e 7e 3d 22 40 49 |!(INIOpt|ion~="@I|
|00001cd0| 4e 54 45 52 4e 41 4c 22 | 29 29 0d 0a 09 09 73 20 |NTERNAL"|))....s |
|00001ce0| 3d 20 50 6c 61 79 65 72 | 4f 77 6e 65 72 28 29 2e |= Player|Owner().|
|00001cf0| 43 6f 6e 73 6f 6c 65 43 | 6f 6d 6d 61 6e 64 28 22 |ConsoleC|ommand("|
|00001d00| 67 65 74 22 40 49 6e 69 | 4f 70 74 69 6f 6e 29 3b |get"@Ini|Option);|
|00001d10| 0d 0a 0d 0a 09 69 66 20 | 28 73 3d 3d 22 22 29 0d |.....if |(s=="").|
|00001d20| 0a 09 09 73 20 3d 20 49 | 6e 69 44 65 66 61 75 6c |...s = I|niDefaul|
|00001d30| 74 3b 0d 0a 0d 0a 09 4f | 6e 4c 6f 61 64 49 4e 49 |t;.....O|nLoadINI|
|00001d40| 28 53 65 6c 66 2c 73 29 | 3b 0d 0a 0d 0a 09 72 65 |(Self,s)|;.....re|
|00001d50| 74 75 72 6e 20 73 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |turn s;.|.}....fu|
|00001d60| 6e 63 74 69 6f 6e 20 53 | 61 76 65 49 4e 49 28 73 |nction S|aveINI(s|
|00001d70| 74 72 69 6e 67 20 56 61 | 6c 75 65 29 0d 0a 7b 0d |tring Va|lue)..{.|
|00001d80| 0a 09 6c 6f 63 61 6c 20 | 73 74 72 69 6e 67 20 73 |..local |string s|
|00001d90| 3b 0d 0a 0d 0a 09 69 66 | 20 28 49 4e 49 4f 70 74 |;.....if| (INIOpt|
|00001da0| 69 6f 6e 3d 3d 22 22 29 | 0d 0a 09 09 72 65 74 75 |ion=="")|....retu|
|00001db0| 72 6e 3b 0d 0a 0d 0a 09 | 69 66 20 28 50 6c 61 79 |rn;.....|if (Play|
|00001dc0| 65 72 4f 77 6e 65 72 28 | 29 3d 3d 4e 6f 6e 65 29 |erOwner(|)==None)|
|00001dd0| 0d 0a 09 09 72 65 74 75 | 72 6e 3b 0d 0a 0d 0a 09 |....retu|rn;.....|
|00001de0| 73 20 3d 20 4f 6e 53 61 | 76 65 49 4e 49 28 53 65 |s = OnSa|veINI(Se|
|00001df0| 6c 66 29 3b 0d 0a 09 69 | 66 20 28 20 73 21 3d 22 |lf);...i|f ( s!="|
|00001e00| 22 20 29 0d 0a 09 7b 0d | 0a 09 7d 0d 0a 7d 0d 0a |" )...{.|..}..}..|
|00001e10| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 73 74 72 69 6e |..functi|on strin|
|00001e20| 67 20 50 61 72 73 65 4f | 70 74 69 6f 6e 28 73 74 |g ParseO|ption(st|
|00001e30| 72 69 6e 67 20 55 52 4c | 2c 20 73 74 72 69 6e 67 |ring URL|, string|
|00001e40| 20 4b 65 79 2c 20 73 74 | 72 69 6e 67 20 44 65 66 | Key, st|ring Def|
|00001e50| 61 75 6c 74 56 61 6c 29 | 0d 0a 7b 0d 0a 09 6c 6f |aultVal)|..{...lo|
|00001e60| 63 61 6c 20 73 74 72 69 | 6e 67 20 73 3b 0d 0a 0d |cal stri|ng s;...|
|00001e70| 0a 09 69 66 20 28 50 6c | 61 79 65 72 4f 77 6e 65 |..if (Pl|ayerOwne|
|00001e80| 72 28 29 3d 3d 4e 6f 6e | 65 29 0d 0a 09 09 72 65 |r()==Non|e)....re|
|00001e90| 74 75 72 6e 20 44 65 66 | 61 75 6c 74 56 61 6c 3b |turn Def|aultVal;|
|00001ea0| 0d 0a 0d 0a 09 73 20 3d | 20 50 6c 61 79 65 72 4f |.....s =| PlayerO|
|00001eb0| 77 6e 65 72 28 29 2e 4c | 65 76 65 6c 2e 47 61 6d |wner().L|evel.Gam|
|00001ec0| 65 2e 50 61 72 73 65 4f | 70 74 69 6f 6e 28 20 55 |e.ParseO|ption( U|
|00001ed0| 52 4c 2c 20 4b 65 79 29 | 3b 0d 0a 09 69 66 20 28 |RL, Key)|;...if (|
|00001ee0| 73 3d 3d 22 22 29 0d 0a | 09 09 72 65 74 75 72 6e |s=="")..|..return|
|00001ef0| 20 44 65 66 61 75 6c 74 | 56 61 6c 3b 0d 0a 09 65 | Default|Val;...e|
|00001f00| 6c 73 65 0d 0a 09 09 72 | 65 74 75 72 6e 20 73 3b |lse....r|eturn s;|
|00001f10| 0d 0a 7d 0d 0a 0d 0a 2f | 2f 20 54 61 6b 65 20 61 |..}..../|/ Take a|
|00001f20| 20 73 74 72 69 6e 67 20 | 61 6e 64 20 73 74 72 69 | string |and stri|
|00001f30| 70 20 6f 75 74 20 63 6f | 6c 6f 75 72 20 63 6f 64 |p out co|lour cod|
|00001f40| 65 73 0d 0a 73 74 61 74 | 69 63 20 66 75 6e 63 74 |es..stat|ic funct|
|00001f50| 69 6f 6e 20 73 74 72 69 | 6e 67 20 53 74 72 69 70 |ion stri|ng Strip|
|00001f60| 43 6f 6c 6f 72 43 6f 64 | 65 73 28 73 74 72 69 6e |ColorCod|es(strin|
|00001f70| 67 20 49 6e 53 74 72 69 | 6e 67 29 0d 0a 7b 0d 0a |g InStri|ng)..{..|
|00001f80| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 43 6f 64 65 50 |.local i|nt CodeP|
|00001f90| 6f 73 3b 0d 0a 0d 0a 09 | 43 6f 64 65 50 6f 73 20 |os;.....|CodePos |
|00001fa0| 3d 20 49 6e 53 74 72 28 | 49 6e 53 74 72 69 6e 67 |= InStr(|InString|
|00001fb0| 2c 20 43 68 72 28 32 37 | 29 29 3b 0d 0a 09 77 68 |, Chr(27|));...wh|
|00001fc0| 69 6c 65 28 43 6f 64 65 | 50 6f 73 20 21 3d 20 2d |ile(Code|Pos != -|
|00001fd0| 31 20 26 26 20 43 6f 64 | 65 50 6f 73 20 3c 20 4c |1 && Cod|ePos < L|
|00001fe0| 65 6e 28 49 6e 53 74 72 | 69 6e 67 29 2d 33 29 20 |en(InStr|ing)-3) |
|00001ff0| 2f 2f 20 69 67 6e 6f 72 | 65 20 63 6f 6c 6f 75 72 |// ignor|e colour|
|00002000| 20 63 6f 64 65 73 20 61 | 74 20 74 68 65 20 65 6e | codes a|t the en|
|00002010| 64 20 6f 66 20 74 68 65 | 20 73 74 72 69 6e 67 0d |d of the| string.|
|00002020| 0a 09 7b 0d 0a 09 09 49 | 6e 53 74 72 69 6e 67 20 |..{....I|nString |
|00002030| 3d 20 4c 65 66 74 28 49 | 6e 53 74 72 69 6e 67 2c |= Left(I|nString,|
|00002040| 20 43 6f 64 65 50 6f 73 | 29 24 4d 69 64 28 49 6e | CodePos|)$Mid(In|
|00002050| 53 74 72 69 6e 67 2c 20 | 43 6f 64 65 50 6f 73 2b |String, |CodePos+|
|00002060| 34 29 3b 0d 0a 0d 0a 09 | 09 43 6f 64 65 50 6f 73 |4);.....|.CodePos|
|00002070| 20 3d 20 49 6e 53 74 72 | 28 49 6e 53 74 72 69 6e | = InStr|(InStrin|
|00002080| 67 2c 20 43 68 72 28 32 | 37 29 29 3b 0d 0a 09 7d |g, Chr(2|7));...}|
|00002090| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 49 6e 53 74 |.....ret|urn InSt|
|000020a0| 72 69 6e 67 3b 0d 0a 7d | 0d 0a 0d 0a 73 74 61 74 |ring;..}|....stat|
|000020b0| 69 63 20 66 75 6e 63 74 | 69 6f 6e 20 73 74 72 69 |ic funct|ion stri|
|000020c0| 6e 67 20 4d 61 6b 65 43 | 6f 6c 6f 72 43 6f 64 65 |ng MakeC|olorCode|
|000020d0| 28 63 6f 6c 6f 72 20 4e | 65 77 43 6f 6c 6f 72 29 |(color N|ewColor)|
|000020e0| 0d 0a 7b 0d 0a 09 2f 2f | 20 54 65 78 74 20 63 6f |..{...//| Text co|
|000020f0| 6c 6f 75 72 73 20 75 73 | 65 20 31 20 61 73 20 30 |lours us|e 1 as 0|
|00002100| 2e 0d 0a 09 69 66 28 4e | 65 77 43 6f 6c 6f 72 2e |....if(N|ewColor.|
|00002110| 52 20 3d 3d 20 30 29 0d | 0a 09 09 4e 65 77 43 6f |R == 0).|...NewCo|
|00002120| 6c 6f 72 2e 52 20 3d 20 | 31 3b 0d 0a 0d 0a 09 69 |lor.R = |1;.....i|
|00002130| 66 28 4e 65 77 43 6f 6c | 6f 72 2e 47 20 3d 3d 20 |f(NewCol|or.G == |
|00002140| 30 29 0d 0a 09 09 4e 65 | 77 43 6f 6c 6f 72 2e 47 |0)....Ne|wColor.G|
|00002150| 20 3d 20 31 3b 0d 0a 0d | 0a 09 69 66 28 4e 65 77 | = 1;...|..if(New|
|00002160| 43 6f 6c 6f 72 2e 42 20 | 3d 3d 20 30 29 0d 0a 09 |Color.B |== 0)...|
|00002170| 09 4e 65 77 43 6f 6c 6f | 72 2e 42 20 3d 20 31 3b |.NewColo|r.B = 1;|
|00002180| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 43 68 72 28 |.....ret|urn Chr(|
|00002190| 30 78 31 42 29 24 43 68 | 72 28 4e 65 77 43 6f 6c |0x1B)$Ch|r(NewCol|
|000021a0| 6f 72 2e 52 29 24 43 68 | 72 28 4e 65 77 43 6f 6c |or.R)$Ch|r(NewCol|
|000021b0| 6f 72 2e 47 29 24 43 68 | 72 28 4e 65 77 43 6f 6c |or.G)$Ch|r(NewCol|
|000021c0| 6f 72 2e 42 29 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 |or.B);..|}....// |
|000021d0| 46 75 6e 63 74 69 6f 6e | 73 0d 0a 0d 0a 65 76 65 |Function|s....eve|
|000021e0| 6e 74 20 4d 65 6e 75 53 | 74 61 74 65 43 68 61 6e |nt MenuS|tateChan|
|000021f0| 67 65 28 65 4d 65 6e 75 | 53 74 61 74 65 20 4e 65 |ge(eMenu|State Ne|
|00002200| 77 73 74 61 74 65 29 0d | 0a 7b 0d 0a 0d 0a 09 2f |wstate).|.{...../|
|00002210| 2f 20 43 68 65 63 6b 20 | 66 6f 72 20 6e 65 76 65 |/ Check |for neve|
|00002220| 72 20 66 6f 63 75 73 0d | 0a 0d 0a 09 62 50 65 6e |r focus.|....bPen|
|00002230| 64 69 6e 67 46 6f 63 75 | 73 3d 66 61 6c 73 65 3b |dingFocu|s=false;|
|00002240| 0d 0a 0d 0a 09 69 66 20 | 28 4e 65 77 53 74 61 74 |.....if |(NewStat|
|00002250| 65 3d 3d 4d 53 41 54 5f | 46 6f 63 75 73 65 64 20 |e==MSAT_|Focused |
|00002260| 26 26 20 62 4e 65 76 65 | 72 46 6f 63 75 73 29 0d |&& bNeve|rFocus).|
|00002270| 0a 09 09 4e 65 77 53 74 | 61 74 65 20 3d 20 4d 53 |...NewSt|ate = MS|
|00002280| 41 54 5f 42 6c 75 72 72 | 79 3b 0d 0a 0d 0a 09 4d |AT_Blurr|y;.....M|
|00002290| 65 6e 75 53 74 61 74 65 | 20 3d 20 4e 65 77 53 74 |enuState| = NewSt|
|000022a0| 61 74 65 3b 0d 0a 0d 0a | 09 73 77 69 74 63 68 20 |ate;....|.switch |
|000022b0| 28 4d 65 6e 75 53 74 61 | 74 65 29 0d 0a 09 7b 0d |(MenuSta|te)...{.|
|000022c0| 0a 09 09 63 61 73 65 20 | 4d 53 41 54 5f 42 6c 75 |...case |MSAT_Blu|
|000022d0| 72 72 79 3a 0d 0a 09 09 | 09 62 48 61 73 46 6f 63 |rry:....|.bHasFoc|
|000022e0| 75 73 20 3d 20 66 61 6c | 73 65 3b 0d 0a 09 09 09 |us = fal|se;.....|
|000022f0| 4f 6e 44 65 41 63 74 69 | 76 61 74 65 28 29 3b 0d |OnDeActi|vate();.|
|00002300| 0a 09 09 09 62 72 65 61 | 6b 3b 0d 0a 0d 0a 09 09 |....brea|k;......|
|00002310| 63 61 73 65 20 4d 53 41 | 54 5f 57 61 74 63 68 65 |case MSA|T_Watche|
|00002320| 64 3a 0d 0a 0d 0a 09 09 | 09 69 66 20 28 62 46 6f |d:......|.if (bFo|
|00002330| 63 75 73 4f 6e 57 61 74 | 63 68 29 0d 0a 09 09 09 |cusOnWat|ch).....|
|00002340| 7b 0d 0a 09 09 09 09 53 | 65 74 46 6f 63 75 73 28 |{......S|etFocus(|
|00002350| 4e 6f 6e 65 29 3b 0d 0a | 09 09 09 09 72 65 74 75 |None);..|....retu|
|00002360| 72 6e 3b 0d 0a 09 09 09 | 7d 0d 0a 0d 0a 09 09 09 |rn;.....|}.......|
|00002370| 4f 6e 57 61 74 63 68 28 | 29 3b 0d 0a 09 09 09 62 |OnWatch(|);.....b|
|00002380| 72 65 61 6b 3b 0d 0a 0d | 0a 09 09 63 61 73 65 20 |reak;...|...case |
|00002390| 4d 53 41 54 5f 46 6f 63 | 75 73 65 64 3a 0d 0a 09 |MSAT_Foc|used:...|
|000023a0| 09 09 62 48 61 73 46 6f | 63 75 73 20 3d 20 74 72 |..bHasFo|cus = tr|
|000023b0| 75 65 3b 0d 0a 09 09 09 | 4f 6e 41 63 74 69 76 61 |ue;.....|OnActiva|
|000023c0| 74 65 28 29 3b 0d 0a 09 | 09 09 62 72 65 61 6b 3b |te();...|..break;|
|000023d0| 0d 0a 0d 0a 09 7d 0d 0a | 0d 0a 09 69 66 20 28 46 |.....}..|...if (F|
|000023e0| 72 69 65 6e 64 6c 79 4c | 61 62 65 6c 21 3d 4e 6f |riendlyL|abel!=No|
|000023f0| 6e 65 29 0d 0a 09 09 46 | 72 69 65 6e 64 6c 79 4c |ne)....F|riendlyL|
|00002400| 61 62 65 6c 2e 4d 65 6e | 75 53 74 61 74 65 3d 4d |abel.Men|uState=M|
|00002410| 65 6e 75 53 74 61 74 65 | 3b 0d 0a 0d 0a 7d 0d 0a |enuState|;....}..|
|00002420| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 49 6e 69 74 43 |..functi|on InitC|
|00002430| 6f 6d 70 6f 6e 65 6e 74 | 28 47 55 49 43 6f 6e 74 |omponent|(GUICont|
|00002440| 72 6f 6c 6c 65 72 20 4d | 79 43 6f 6e 74 72 6f 6c |roller M|yControl|
|00002450| 6c 65 72 2c 20 47 55 49 | 43 6f 6d 70 6f 6e 65 6e |ler, GUI|Componen|
|00002460| 74 20 4d 79 4f 77 6e 65 | 72 29 0d 0a 7b 0d 0a 0d |t MyOwne|r)..{...|
|00002470| 0a 09 43 6f 6e 74 72 6f | 6c 6c 65 72 20 3d 20 4d |..Contro|ller = M|
|00002480| 79 43 6f 6e 74 72 6f 6c | 6c 65 72 3b 0d 0a 09 4d |yControl|ler;...M|
|00002490| 65 6e 75 4f 77 6e 65 72 | 20 3d 20 4d 79 4f 77 6e |enuOwner| = MyOwn|
|000024a0| 65 72 3b 0d 0a 0d 0a 09 | 53 74 79 6c 65 20 3d 20 |er;.....|Style = |
|000024b0| 43 6f 6e 74 72 6f 6c 6c | 65 72 2e 47 65 74 53 74 |Controll|er.GetSt|
|000024c0| 79 6c 65 28 53 74 79 6c | 65 4e 61 6d 65 29 3b 0d |yle(Styl|eName);.|
|000024d0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 49 |.}....fu|nction I|
|000024e0| 6e 69 74 44 65 6c 65 67 | 61 74 65 73 28 29 3b 0d |nitDeleg|ates();.|
|000024f0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |...funct|ion bool|
|00002500| 20 49 73 49 6e 42 6f 75 | 6e 64 73 28 29 09 2f 2f | IsInBou|nds().//|
|00002510| 20 53 63 72 69 70 74 20 | 76 65 72 73 69 6f 6e 20 | Script |version |
|00002520| 6f 66 20 50 65 72 66 6f | 72 6d 48 69 74 54 65 73 |of Perfo|rmHitTes|
|00002530| 74 0d 0a 7b 0d 0a 09 72 | 65 74 75 72 6e 20 28 20 |t..{...r|eturn ( |
|00002540| 28 43 6f 6e 74 72 6f 6c | 6c 65 72 2e 4d 6f 75 73 |(Control|ler.Mous|
|00002550| 65 58 20 3e 3d 20 42 6f | 75 6e 64 73 5b 30 5d 20 |eX >= Bo|unds[0] |
|00002560| 26 26 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 2e 4d 6f |&& Contr|oller.Mo|
|00002570| 75 73 65 58 3c 3d 42 6f | 75 6e 64 73 5b 32 5d 29 |useX<=Bo|unds[2])|
|00002580| 20 26 26 20 28 43 6f 6e | 74 72 6f 6c 6c 65 72 2e | && (Con|troller.|
|00002590| 4d 6f 75 73 65 59 20 3e | 3d 20 42 6f 75 6e 64 73 |MouseY >|= Bounds|
|000025a0| 5b 31 5d 20 26 26 20 43 | 6f 6e 74 72 6f 6c 6c 65 |[1] && C|ontrolle|
|000025b0| 72 2e 4d 6f 75 73 65 59 | 20 3c 3d 42 6f 75 6e 64 |r.MouseY| <=Bound|
|000025c0| 73 5b 33 5d 29 20 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |s[3]) );|..}....f|
|000025d0| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 49 73 49 |unction |bool IsI|
|000025e0| 6e 43 6c 69 65 6e 74 42 | 6f 75 6e 64 73 28 29 0d |nClientB|ounds().|
|000025f0| 0a 7b 0d 0a 09 72 65 74 | 75 72 6e 20 28 20 28 43 |.{...ret|urn ( (C|
|00002600| 6f 6e 74 72 6f 6c 6c 65 | 72 2e 4d 6f 75 73 65 58 |ontrolle|r.MouseX|
|00002610| 20 3e 3d 20 43 6c 69 65 | 6e 74 42 6f 75 6e 64 73 | >= Clie|ntBounds|
|00002620| 5b 30 5d 20 26 26 20 43 | 6f 6e 74 72 6f 6c 6c 65 |[0] && C|ontrolle|
|00002630| 72 2e 4d 6f 75 73 65 58 | 3c 3d 43 6c 69 65 6e 74 |r.MouseX|<=Client|
|00002640| 42 6f 75 6e 64 73 5b 32 | 5d 29 20 26 26 20 28 43 |Bounds[2|]) && (C|
|00002650| 6f 6e 74 72 6f 6c 6c 65 | 72 2e 4d 6f 75 73 65 59 |ontrolle|r.MouseY|
|00002660| 20 3e 3d 20 43 6c 69 65 | 6e 74 42 6f 75 6e 64 73 | >= Clie|ntBounds|
|00002670| 5b 31 5d 20 26 26 20 43 | 6f 6e 74 72 6f 6c 6c 65 |[1] && C|ontrolle|
|00002680| 72 2e 4d 6f 75 73 65 59 | 20 3c 3d 43 6c 69 65 6e |r.MouseY| <=Clien|
|00002690| 74 42 6f 75 6e 64 73 5b | 33 5d 29 20 29 3b 0d 0a |tBounds[|3]) );..|
|000026a0| 7d 0d 0a 0d 0a 65 76 65 | 6e 74 20 53 65 74 46 6f |}....eve|nt SetFo|
|000026b0| 63 75 73 28 47 55 49 43 | 6f 6d 70 6f 6e 65 6e 74 |cus(GUIC|omponent|
|000026c0| 20 57 68 6f 29 0d 0a 7b | 0d 0a 09 69 66 20 28 62 | Who)..{|...if (b|
|000026d0| 4e 65 76 65 72 46 6f 63 | 75 73 29 0d 0a 09 7b 0d |NeverFoc|us)...{.|
|000026e0| 0a 09 09 69 66 20 28 46 | 6f 63 75 73 49 6e 73 74 |...if (F|ocusInst|
|000026f0| 65 61 64 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 |ead != N|one)....|
|00002700| 09 46 6f 63 75 73 49 6e | 73 74 65 61 64 2e 53 65 |.FocusIn|stead.Se|
|00002710| 74 46 6f 63 75 73 28 57 | 68 6f 29 3b 0d 0a 0d 0a |tFocus(W|ho);....|
|00002720| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 7d 0d 0a 0d |..return|;...}...|
|00002730| 0a 09 4d 65 6e 75 53 74 | 61 74 65 43 68 61 6e 67 |..MenuSt|ateChang|
|00002740| 65 28 4d 53 41 54 5f 46 | 6f 63 75 73 65 64 29 3b |e(MSAT_F|ocused);|
|00002750| 0d 0a 0d 0a 09 69 66 20 | 28 43 6f 6e 74 72 6f 6c |.....if |(Control|
|00002760| 6c 65 72 2e 46 6f 63 75 | 73 65 64 43 6f 6e 74 72 |ler.Focu|sedContr|
|00002770| 6f 6c 21 3d 4e 6f 6e 65 | 29 0d 0a 20 20 20 20 7b |ol!=None|).. {|
|00002780| 0d 0a 20 20 20 20 09 69 | 66 20 20 28 43 6f 6e 74 |.. .i|f (Cont|
|00002790| 72 6f 6c 6c 65 72 2e 46 | 6f 63 75 73 65 64 43 6f |roller.F|ocusedCo|
|000027a0| 6e 74 72 6f 6c 20 3d 3d | 20 53 65 6c 66 29 09 2f |ntrol ==| Self)./|
|000027b0| 2f 20 41 6c 72 65 61 64 | 79 20 46 6f 63 75 73 65 |/ Alread|y Focuse|
|000027c0| 64 0d 0a 09 09 09 72 65 | 74 75 72 6e 3b 0d 0a 20 |d.....re|turn;.. |
|000027d0| 20 20 20 20 20 20 20 65 | 6c 73 65 0d 0a 09 09 09 | e|lse.....|
|000027e0| 43 6f 6e 74 72 6f 6c 6c | 65 72 2e 46 6f 63 75 73 |Controll|er.Focus|
|000027f0| 65 64 43 6f 6e 74 72 6f | 6c 2e 4c 6f 73 65 46 6f |edContro|l.LoseFo|
|00002800| 63 75 73 28 4e 6f 6e 65 | 29 3b 0d 0a 09 7d 0d 0a |cus(None|);...}..|
|00002810| 0d 0a 09 62 50 65 6e 64 | 69 6e 67 46 6f 63 75 73 |...bPend|ingFocus|
|00002820| 20 3d 20 74 72 75 65 3b | 0d 0a 0d 0a 09 43 6f 6e | = true;|.....Con|
|00002830| 74 72 6f 6c 6c 65 72 2e | 46 6f 63 75 73 65 64 43 |troller.|FocusedC|
|00002840| 6f 6e 74 72 6f 6c 20 3d | 20 73 65 6c 66 3b 0d 0a |ontrol =| self;..|
|00002850| 0d 0a 09 69 66 20 28 4d | 65 6e 75 4f 77 6e 65 72 |...if (M|enuOwner|
|00002860| 21 3d 4e 6f 6e 65 29 0d | 0a 09 09 4d 65 6e 75 4f |!=None).|...MenuO|
|00002870| 77 6e 65 72 2e 53 65 74 | 46 6f 63 75 73 28 73 65 |wner.Set|Focus(se|
|00002880| 6c 66 29 3b 0d 0a 7d 0d | 0a 0d 0a 65 76 65 6e 74 |lf);..}.|...event|
|00002890| 20 4c 6f 73 65 46 6f 63 | 75 73 28 47 55 49 43 6f | LoseFoc|us(GUICo|
|000028a0| 6d 70 6f 6e 65 6e 74 20 | 53 65 6e 64 65 72 29 0d |mponent |Sender).|
|000028b0| 0a 7b 0d 0a 09 69 66 20 | 28 43 6f 6e 74 72 6f 6c |.{...if |(Control|
|000028c0| 6c 65 72 21 3d 4e 6f 6e | 65 29 0d 0a 09 09 43 6f |ler!=Non|e)....Co|
|000028d0| 6e 74 72 6f 6c 6c 65 72 | 2e 46 6f 63 75 73 65 64 |ntroller|.Focused|
|000028e0| 43 6f 6e 74 72 6f 6c 20 | 3d 20 4e 6f 6e 65 3b 0d |Control |= None;.|
|000028f0| 0a 0d 0a 09 4d 65 6e 75 | 53 74 61 74 65 43 68 61 |....Menu|StateCha|
|00002900| 6e 67 65 28 4d 53 41 54 | 5f 42 6c 75 72 72 79 29 |nge(MSAT|_Blurry)|
|00002910| 3b 0d 0a 0d 0a 09 69 66 | 20 28 4d 65 6e 75 4f 77 |;.....if| (MenuOw|
|00002920| 6e 65 72 21 3d 4e 6f 6e | 65 29 0d 0a 09 09 4d 65 |ner!=Non|e)....Me|
|00002930| 6e 75 4f 77 6e 65 72 2e | 4c 6f 73 65 46 6f 63 75 |nuOwner.|LoseFocu|
|00002940| 73 28 53 65 6c 66 29 3b | 0d 0a 7d 0d 0a 0d 0a 65 |s(Self);|..}....e|
|00002950| 76 65 6e 74 20 62 6f 6f | 6c 20 46 6f 63 75 73 46 |vent boo|l FocusF|
|00002960| 69 72 73 74 28 47 55 49 | 43 6f 6d 70 6f 6e 65 6e |irst(GUI|Componen|
|00002970| 74 20 53 65 6e 64 65 72 | 29 09 2f 2f 20 46 6f 63 |t Sender|).// Foc|
|00002980| 75 73 20 79 6f 75 72 20 | 66 69 72 73 74 20 63 68 |us your |first ch|
|00002990| 69 6c 64 2c 20 6f 72 20 | 79 6f 75 72 73 65 6c 66 |ild, or |yourself|
|000029a0| 20 69 66 20 6e 6f 20 63 | 68 69 6c 64 72 65 61 6e | if no c|hildrean|
|000029b0| 0d 0a 7b 0d 0a 0d 0a 09 | 69 66 20 28 20 28 21 62 |..{.....|if ( (!b|
|000029c0| 56 69 73 69 62 6c 65 29 | 20 7c 7c 20 28 62 4e 65 |Visible)| || (bNe|
|000029d0| 76 65 72 46 6f 63 75 73 | 29 20 7c 7c 20 28 4d 65 |verFocus|) || (Me|
|000029e0| 6e 75 53 74 61 74 65 3d | 3d 4d 53 41 54 5f 44 69 |nuState=|=MSAT_Di|
|000029f0| 73 61 62 6c 65 64 29 20 | 7c 7c 20 28 21 62 54 61 |sabled) ||| (!bTa|
|00002a00| 62 53 74 6f 70 29 20 29 | 0d 0a 09 09 72 65 74 75 |bStop) )|....retu|
|00002a10| 72 6e 20 66 61 6c 73 65 | 3b 0d 0a 0d 0a 09 72 65 |rn false|;.....re|
|00002a20| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 7d 0d 0a 0d |turn tru|e;..}...|
|00002a30| 0a 65 76 65 6e 74 20 62 | 6f 6f 6c 20 46 6f 63 75 |.event b|ool Focu|
|00002a40| 73 4c 61 73 74 28 47 55 | 49 43 6f 6d 70 6f 6e 65 |sLast(GU|ICompone|
|00002a50| 6e 74 20 53 65 6e 64 65 | 72 29 20 2f 2f 20 46 6f |nt Sende|r) // Fo|
|00002a60| 63 75 73 20 79 6f 75 72 | 20 6c 61 73 74 20 63 68 |cus your| last ch|
|00002a70| 69 6c 64 2c 20 6f 72 20 | 79 6f 75 72 73 65 6c 66 |ild, or |yourself|
|00002a80| 0d 0a 7b 0d 0a 09 69 66 | 20 28 20 28 21 62 56 69 |..{...if| ( (!bVi|
|00002a90| 73 69 62 6c 65 29 20 7c | 7c 20 28 62 4e 65 76 65 |sible) ||| (bNeve|
|00002aa0| 72 46 6f 63 75 73 29 20 | 7c 7c 20 28 4d 65 6e 75 |rFocus) ||| (Menu|
|00002ab0| 53 74 61 74 65 3d 3d 4d | 53 41 54 5f 44 69 73 61 |State==M|SAT_Disa|
|00002ac0| 62 6c 65 64 29 20 7c 7c | 20 28 21 62 54 61 62 53 |bled) ||| (!bTabS|
|00002ad0| 74 6f 70 29 20 29 0d 0a | 09 09 72 65 74 75 72 6e |top) )..|..return|
|00002ae0| 20 66 61 6c 73 65 3b 0d | 0a 0d 0a 09 53 65 74 46 | false;.|....SetF|
|00002af0| 6f 63 75 73 28 4e 6f 6e | 65 29 3b 0d 0a 09 72 65 |ocus(Non|e);...re|
|00002b00| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 7d 0d 0a 0d |turn tru|e;..}...|
|00002b10| 0a 65 76 65 6e 74 20 62 | 6f 6f 6c 20 4e 65 78 74 |.event b|ool Next|
|00002b20| 43 6f 6e 74 72 6f 6c 28 | 47 55 49 43 6f 6d 70 6f |Control(|GUICompo|
|00002b30| 6e 65 6e 74 20 53 65 6e | 64 65 72 29 0d 0a 7b 0d |nent Sen|der)..{.|
|00002b40| 0a 09 69 66 20 28 4d 65 | 6e 75 4f 77 6e 65 72 21 |..if (Me|nuOwner!|
|00002b50| 3d 4e 6f 6e 65 29 0d 0a | 09 09 72 65 74 75 72 6e |=None)..|..return|
|00002b60| 20 4d 65 6e 75 4f 77 6e | 65 72 2e 4e 65 78 74 43 | MenuOwn|er.NextC|
|00002b70| 6f 6e 74 72 6f 6c 28 53 | 65 6c 66 29 3b 0d 0a 0d |ontrol(S|elf);...|
|00002b80| 0a 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|00002b90| 0a 7d 0d 0a 0d 0a 65 76 | 65 6e 74 20 62 6f 6f 6c |.}....ev|ent bool|
|00002ba0| 20 50 72 65 76 43 6f 6e | 74 72 6f 6c 28 47 55 49 | PrevCon|trol(GUI|
|00002bb0| 43 6f 6d 70 6f 6e 65 6e | 74 20 53 65 6e 64 65 72 |Componen|t Sender|
|00002bc0| 29 0d 0a 7b 0d 0a 09 69 | 66 20 28 4d 65 6e 75 4f |)..{...i|f (MenuO|
|00002bd0| 77 6e 65 72 21 3d 4e 6f | 6e 65 29 0d 0a 09 09 72 |wner!=No|ne)....r|
|00002be0| 65 74 75 72 6e 20 4d 65 | 6e 75 4f 77 6e 65 72 2e |eturn Me|nuOwner.|
|00002bf0| 50 72 65 76 43 6f 6e 74 | 72 6f 6c 28 53 65 6c 66 |PrevCont|rol(Self|
|00002c00| 29 3b 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 66 61 |);.....r|eturn fa|
|00002c10| 6c 73 65 3b 0d 0a 7d 0d | 0a 0d 0a 65 76 65 6e 74 |lse;..}.|...event|
|00002c20| 20 62 6f 6f 6c 20 4e 65 | 78 74 50 61 67 65 28 29 | bool Ne|xtPage()|
|00002c30| 0d 0a 7b 0d 0a 09 69 66 | 20 28 4d 65 6e 75 4f 77 |..{...if| (MenuOw|
|00002c40| 6e 65 72 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 |ner != N|one)....|
|00002c50| 72 65 74 75 72 6e 20 4d | 65 6e 75 4f 77 6e 65 72 |return M|enuOwner|
|00002c60| 2e 4e 65 78 74 50 61 67 | 65 28 29 3b 0d 0a 0d 0a |.NextPag|e();....|
|00002c70| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00002c80| 7d 0d 0a 0d 0a 65 76 65 | 6e 74 20 62 6f 6f 6c 20 |}....eve|nt bool |
|00002c90| 50 72 65 76 50 61 67 65 | 28 29 0d 0a 7b 0d 0a 09 |PrevPage|()..{...|
|00002ca0| 69 66 20 28 4d 65 6e 75 | 4f 77 6e 65 72 20 21 3d |if (Menu|Owner !=|
|00002cb0| 20 4e 6f 6e 65 29 0d 0a | 09 09 72 65 74 75 72 6e | None)..|..return|
|00002cc0| 20 4d 65 6e 75 4f 77 6e | 65 72 2e 50 72 65 76 50 | MenuOwn|er.PrevP|
|00002cd0| 61 67 65 28 29 3b 0d 0a | 0d 0a 09 72 65 74 75 72 |age();..|...retur|
|00002ce0| 6e 20 66 61 6c 73 65 3b | 0d 0a 7d 0d 0a 0d 0a 2f |n false;|..}..../|
|00002cf0| 2f 20 46 6f 72 63 65 20 | 63 6f 6e 74 72 6f 6c 20 |/ Force |control |
|00002d00| 74 6f 20 75 73 65 20 73 | 61 6d 65 20 61 72 65 61 |to use s|ame area|
|00002d10| 20 61 73 20 69 74 73 20 | 4d 65 6e 75 4f 77 6e 65 | as its |MenuOwne|
|00002d20| 72 2e 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 46 69 6c |r...func|tion Fil|
|00002d30| 6c 4f 77 6e 65 72 28 29 | 0d 0a 7b 0d 0a 09 57 69 |lOwner()|..{...Wi|
|00002d40| 6e 4c 65 66 74 20 3d 20 | 30 2e 30 3b 0d 0a 09 57 |nLeft = |0.0;...W|
|00002d50| 69 6e 54 6f 70 20 3d 20 | 30 2e 30 3b 0d 0a 09 57 |inTop = |0.0;...W|
|00002d60| 69 6e 57 69 64 74 68 20 | 3d 20 31 2e 30 3b 0d 0a |inWidth |= 1.0;..|
|00002d70| 09 57 69 6e 48 65 69 67 | 68 74 20 3d 20 31 2e 30 |.WinHeig|ht = 1.0|
|00002d80| 3b 0d 0a 09 62 53 63 61 | 6c 65 54 6f 50 61 72 65 |;...bSca|leToPare|
|00002d90| 6e 74 20 3d 20 74 72 75 | 65 3b 0d 0a 09 62 42 6f |nt = tru|e;...bBo|
|00002da0| 75 6e 64 54 6f 50 61 72 | 65 6e 74 20 3d 20 74 72 |undToPar|ent = tr|
|00002db0| 75 65 3b 0d 0a 7d 0d 0a | 0d 0a 65 76 65 6e 74 20 |ue;..}..|..event |
|00002dc0| 53 65 74 56 69 73 69 62 | 69 6c 69 74 79 28 62 6f |SetVisib|ility(bo|
|00002dd0| 6f 6c 20 62 49 73 56 69 | 73 69 62 6c 65 29 0d 0a |ol bIsVi|sible)..|
|00002de0| 7b 0d 0a 09 62 56 69 73 | 69 62 6c 65 20 3d 20 62 |{...bVis|ible = b|
|00002df0| 49 73 56 69 73 69 62 6c | 65 3b 0d 0a 0d 0a 20 20 |IsVisibl|e;.... |
|00002e00| 20 20 69 66 20 28 62 56 | 69 73 69 62 6c 65 29 0d | if (bV|isible).|
|00002e10| 0a 20 20 20 20 09 4f 6e | 53 68 6f 77 28 29 3b 0d |. .On|Show();.|
|00002e20| 0a 20 20 20 20 65 6c 73 | 65 0d 0a 20 20 20 20 09 |. els|e.. .|
|00002e30| 4f 6e 48 69 64 65 28 29 | 3b 0d 0a 7d 0d 0a 0d 0a |OnHide()|;..}....|
|00002e40| 65 76 65 6e 74 20 48 69 | 64 65 28 29 0d 0a 7b 0d |event Hi|de()..{.|
|00002e50| 0a 09 53 65 74 56 69 73 | 69 62 69 6c 69 74 79 28 |..SetVis|ibility(|
|00002e60| 66 61 6c 73 65 29 3b 0d | 0a 7d 0d 0a 0d 0a 65 76 |false);.|.}....ev|
|00002e70| 65 6e 74 20 53 68 6f 77 | 28 29 0d 0a 7b 0d 0a 09 |ent Show|()..{...|
|00002e80| 53 65 74 56 69 73 69 62 | 69 6c 69 74 79 28 74 72 |SetVisib|ility(tr|
|00002e90| 75 65 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |ue);..}.|...funct|
|00002ea0| 69 6f 6e 20 53 65 74 46 | 72 69 65 6e 64 6c 79 4c |ion SetF|riendlyL|
|00002eb0| 61 62 65 6c 28 47 55 49 | 4c 61 62 65 6c 20 4e 65 |abel(GUI|Label Ne|
|00002ec0| 77 4c 61 62 65 6c 29 0d | 0a 7b 0d 0a 09 46 72 69 |wLabel).|.{...Fri|
|00002ed0| 65 6e 64 6c 79 4c 61 62 | 65 6c 20 3d 20 4e 65 77 |endlyLab|el = New|
|00002ee0| 4c 61 62 65 6c 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |Label;..|}....fun|
|00002ef0| 63 74 69 6f 6e 20 53 65 | 74 48 69 6e 74 28 73 74 |ction Se|tHint(st|
|00002f00| 72 69 6e 67 20 4e 65 77 | 48 69 6e 74 29 0d 0a 7b |ring New|Hint)..{|
|00002f10| 0d 0a 09 48 69 6e 74 20 | 3d 20 4e 65 77 48 69 6e |...Hint |= NewHin|
|00002f20| 74 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |t;..}...|.functio|
|00002f30| 6e 20 53 65 74 4c 69 6e | 6b 73 28 47 55 49 43 6f |n SetLin|ks(GUICo|
|00002f40| 6d 70 6f 6e 65 6e 74 20 | 63 55 70 2c 47 55 49 43 |mponent |cUp,GUIC|
|00002f50| 6f 6d 70 6f 6e 65 6e 74 | 20 63 44 6f 77 6e 2c 47 |omponent| cDown,G|
|00002f60| 55 49 43 6f 6d 70 6f 6e | 65 6e 74 20 63 4c 65 66 |UICompon|ent cLef|
|00002f70| 74 2c 47 55 49 43 6f 6d | 70 6f 6e 65 6e 74 20 63 |t,GUICom|ponent c|
|00002f80| 52 69 67 68 74 29 0d 0a | 7b 0d 0a 09 4c 69 6e 6b |Right)..|{...Link|
|00002f90| 73 5b 30 5d 20 3d 20 63 | 55 70 3b 0d 0a 20 20 20 |s[0] = c|Up;.. |
|00002fa0| 20 4c 69 6e 6b 73 5b 31 | 5d 20 3d 20 63 44 6f 77 | Links[1|] = cDow|
|00002fb0| 6e 3b 0d 0a 20 20 20 20 | 4c 69 6e 6b 73 5b 32 5d |n;.. |Links[2]|
|00002fc0| 20 3d 20 63 4c 65 66 74 | 3b 0d 0a 20 20 20 20 4c | = cLeft|;.. L|
|00002fd0| 69 6e 6b 73 5b 33 5d 20 | 3d 20 63 52 69 67 68 74 |inks[3] |= cRight|
|00002fe0| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00002ff0| 20 53 65 74 4c 69 6e 6b | 4f 76 65 72 72 69 64 65 | SetLink|Override|
|00003000| 73 28 47 55 49 43 6f 6d | 70 6f 6e 65 6e 74 20 63 |s(GUICom|ponent c|
|00003010| 55 70 2c 47 55 49 43 6f | 6d 70 6f 6e 65 6e 74 20 |Up,GUICo|mponent |
|00003020| 63 44 6f 77 6e 2c 47 55 | 49 43 6f 6d 70 6f 6e 65 |cDown,GU|ICompone|
|00003030| 6e 74 20 63 4c 65 66 74 | 2c 47 55 49 43 6f 6d 70 |nt cLeft|,GUIComp|
|00003040| 6f 6e 65 6e 74 20 63 52 | 69 67 68 74 29 0d 0a 7b |onent cR|ight)..{|
|00003050| 0d 0a 09 4c 69 6e 6b 4f | 76 65 72 72 69 64 65 73 |...LinkO|verrides|
|00003060| 5b 30 5d 20 3d 20 63 55 | 70 3b 0d 0a 20 20 20 20 |[0] = cU|p;.. |
|00003070| 4c 69 6e 6b 4f 76 65 72 | 72 69 64 65 73 5b 31 5d |LinkOver|rides[1]|
|00003080| 20 3d 20 63 44 6f 77 6e | 3b 0d 0a 20 20 20 20 4c | = cDown|;.. L|
|00003090| 69 6e 6b 4f 76 65 72 72 | 69 64 65 73 5b 32 5d 20 |inkOverr|ides[2] |
|000030a0| 3d 20 63 4c 65 66 74 3b | 0d 0a 20 20 20 20 4c 69 |= cLeft;|.. Li|
|000030b0| 6e 6b 4f 76 65 72 72 69 | 64 65 73 5b 33 5d 20 3d |nkOverri|des[3] =|
|000030c0| 20 63 52 69 67 68 74 3b | 0d 0a 7d 0d 0a 0d 0a 0d | cRight;|..}.....|
|000030d0| 0a 2f 2f 20 54 68 65 20 | 41 63 74 75 61 6c 58 58 |.// The |ActualXX|
|000030e0| 58 58 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 72 65 |XX funct|ions are|
|000030f0| 20 6e 6f 74 20 76 69 61 | 62 6c 65 20 75 6e 74 69 | not via|ble unti|
|00003100| 6c 20 61 66 74 65 72 20 | 74 68 65 20 66 69 72 73 |l after |the firs|
|00003110| 74 20 72 65 6e 64 65 72 | 20 73 6f 20 64 6f 6e 27 |t render| so don'|
|00003120| 74 0d 0a 2f 2f 20 75 73 | 65 20 74 68 65 6d 20 69 |t..// us|e them i|
|00003130| 6e 20 69 6e 69 74 73 0d | 0a 6e 61 74 69 76 65 20 |n inits.|.native |
|00003140| 66 75 6e 63 74 69 6f 6e | 20 66 6c 6f 61 74 20 41 |function| float A|
|00003150| 63 74 75 61 6c 57 69 64 | 74 68 28 29 3b 0d 0a 6e |ctualWid|th();..n|
|00003160| 61 74 69 76 65 20 66 75 | 6e 63 74 69 6f 6e 20 66 |ative fu|nction f|
|00003170| 6c 6f 61 74 20 41 63 74 | 75 61 6c 48 65 69 67 68 |loat Act|ualHeigh|
|00003180| 74 28 29 3b 0d 0a 6e 61 | 74 69 76 65 20 66 75 6e |t();..na|tive fun|
|00003190| 63 74 69 6f 6e 20 66 6c | 6f 61 74 20 41 63 74 75 |ction fl|oat Actu|
|000031a0| 61 6c 4c 65 66 74 28 29 | 3b 0d 0a 6e 61 74 69 76 |alLeft()|;..nativ|
|000031b0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 46 6c 6f 61 74 |e functi|on Float|
|000031c0| 20 41 63 74 75 61 6c 54 | 6f 70 28 29 3b 0d 0a 0d | ActualT|op();...|
|000031d0| 0a 00 | |.. | |
+--------+-------------------------+-------------------------+--------+--------+